-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add support for NumberFormatOptions notation #37721
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
Add support for NumberFormatOptions notation #37721
Conversation
This should be merged. |
Thanks for assigning this to yourself @sandersn. Any chance you'd be able to take a quick look? I'm hoping it should be an easy review since it's only a couple lines. |
I typically merge lib changes at the beginning of a version to let people find breaks, so I'll wait until 4.0 in a few weeks. Touching the ES5 lib is bound to break somebody, no matter how small the change. |
@benmccann @awibox Should this property go in I was just trying to draw some analogy with the
Edit: Just realizing, may be the location doesn't have anything to do ECMAScript and rather just depends upon browser support? |
Sorry for missing this. This should go into ES2020, not ES5, but if we can get it in before the beta on Monday it'll be fine to ship. I'm pretty sure the right place is es2020.intl.d.ts. @benmccann I'll do it in the next day or so if I have time. I understand if you're sick of me forgetting about this. =) |
Great. Thanks so much @sandersn ! I'll leave the rest to you then. I'm pretty new to TypeScript, so I'm sure you have a much better handle on things than I do, but please let me know if there's anything I can do to help |
Closes #36533
Adds the
notation
option toNumberFormatOptions
insrc/lib/es5.d.ts
I'm an experienced JS developer, but new to TypeScript, so if any changes are required to this PR you may have to give me some pointers.