-
Notifications
You must be signed in to change notification settings - Fork 12.9k
fix(47024):fix type of DateTimeFormat and NumberFormat #47117
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
Conversation
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
@@ -16,9 +21,4 @@ declare namespace Intl { | |||
dayPeriod?: "narrow" | "short" | "long"; | |||
fractionalSecondDigits?: 0 | 1 | 2 | 3; | |||
} | |||
|
|||
interface NumberFormat { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you perhaps move this to esnext.intl.d.ts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
I've fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except the parameter names. I took a long time to review this -- @islandryu I can add my suggestion myself if you want. I'm going to hold this until 4.7 anyway since we're nearly through the 4.6 beta period.
Co-authored-by: Nathan Shively-Sanders <[email protected]>
@sandersn |
Fixes #47024