In typescript, I'm unable to reassign parse.unit to switch locales as documented, since it's declared as a const in the typings:
|
declare namespace parse { |
|
const unit: Units; |
|
} |
Declaring it as a
let works fine:
declare namespace parse {
let unit: Units;
}