-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
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
Intl.NumberFormatOptions options are missing #52072
Comments
I just ran into this issue myself. Weirdly it's not available in the es2020 definition of |
Following up on this, according to the specification, roundingMode should also be available, but typescript is throwing an error:
Caniuse is showing it is widely available as well. Multiple other options are missing as mentioned in #43336 |
Bug Report
Hi. According to specification
Intl.NumberFormat
containsnumberingSystem
option, but typescript throws the errorObject literal may only specify known properties, and 'numberingSystem' does not exist in type 'NumberFormatOptions'
🔎 Search Terms
Intl, NumberFormatOptions
🕗 Version & Regression Information
"typescript": "^4.9.4"
💻 Code
I have a monorepo with this structure
root
base.tsconfig.json
app1/tsconfig.json
app1/index.ts
🙁 Actual behavior
After type checking typescript throws error
🙂 Expected behavior
The typescript correctly checks the types that are specified in the specification
The text was updated successfully, but these errors were encountered: