Skip to content

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

Merged
merged 7 commits into from
Feb 17, 2022

Conversation

islandryu
Copy link
Contributor

@islandryu islandryu commented Dec 12, 2021

Fixes #47024

@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 12, 2021
@@ -16,9 +21,4 @@ declare namespace Intl {
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 0 | 1 | 2 | 3;
}

interface NumberFormat {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@islandryu islandryu changed the title fix type of DateTimeFormat and NumberFormat (fix:47024)fix type of DateTimeFormat and NumberFormat Dec 21, 2021
@islandryu islandryu changed the title (fix:47024)fix type of DateTimeFormat and NumberFormat fix(47024):fix type of DateTimeFormat and NumberFormat Dec 21, 2021
Copy link
Member

@sandersn sandersn left a 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.

@islandryu
Copy link
Contributor Author

@sandersn
Thanks for the review!
I've committed the suggestion and renamed the conflict.

@sandersn sandersn merged commit b8b1201 into microsoft:main Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

formatRange[ToParts] should go Intl.DateTimeFormat but instead is in NumberFormat
4 participants