Skip to content

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
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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