You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the package as: const schema = parse('x-whatevertag', {warning: true}), results in error:
if (options.warning) options.warning(reason, code, offset)
^
TypeError: options.warning is not a function
at fail (file:///C:/Users/.../node_modules/bcp-47/lib/parse.js:288:34)
at parse (file:///C:/Users/.../node_modules/bcp-47/lib/parse.js:258:18)
at file:///C:/Users/.../src/test.js:3:16```
The text was updated successfully, but these errors were encountered:
Hi! You use TypeScript. TypeScript tells you that you pass wrong input. That’s why TypeScript exists. Please use the types provided or read the docs: https://github.com/wooorm/bcp-47#optionswarning
Using the package as:
const schema = parse('x-whatevertag', {warning: true})
, results in error:The text was updated successfully, but these errors were encountered: