We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In typescript, I'm unable to reassign parse.unit to switch locales as documented, since it's declared as a const in the typings:
parse.unit
const
parse-duration/index.d.ts
Lines 24 to 26 in 2c0c072
let
declare namespace parse { let unit: Units; }
The text was updated successfully, but these errors were encountered:
You can extend units Object.assign(parse.unit, {...}) before v2.1.3. Fixed in 2.1.3
Object.assign(parse.unit, {...})
Sorry, something went wrong.
No branches or pull requests
In typescript, I'm unable to reassign
parse.unit
to switch locales as documented, since it's declared as aconst
in the typings:parse-duration/index.d.ts
Lines 24 to 26 in 2c0c072
Declaring it as a
let
works fine:The text was updated successfully, but these errors were encountered: