Skip to content

fix(47024):fix type of DateTimeFormat and NumberFormat - #47117

Merged
Nathan Shively-Sanders (sandersn) merged 7 commits into
microsoft:mainfrom
islandryu:DateTimeFormat
Feb 17, 2022
Merged

Nathan Shively-Sanders (sandersn) merged 7 commits into
microsoft:mainfrom
islandryu:DateTimeFormat

Conversation

@islandryu

@islandryu islandryu commented Dec 12, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #47024

@typescript-bot

Copy link
Copy Markdown
Contributor

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 (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
Comment thread src/lib/es2021.intl.d.ts
fractionalSecondDigits?: 0 | 1 | 2 | 3;
}

interface NumberFormat {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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.

Comment thread src/lib/esnext.intl.d.ts Outdated
islandryu and others added 3 commits February 8, 2022 11:31
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
@islandryu

Copy link
Copy Markdown
Contributor Author

Nathan Shively-Sanders (@sandersn)
Thanks for the review!
I've committed the suggestion and renamed the conflict.

@sandersn
Nathan Shively-Sanders (sandersn) merged commit b8b1201 into microsoft:main Feb 17, 2022
@microsoft 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