GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Add missing currencyDisplay to resolved number format options by snowystinger · Pull Request #44006 · microsoft/TypeScript Conversation
|
|
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm not sure why it thinks I don't have a linked issue, it's in the description. Probably didn't format that correctly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I believe it expects you to just include the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| style: string; | ||
| currency?: string; | ||
| currencyDisplay?: string; | ||
| currencySign?: string; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this, and currencyDisplay, go in the es2020.intl.d.ts interface instead?
From MDN Compatibility Chart it looks like this was released at the same time as all of the other options listed in the es2020 interface.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
my bad, I saw it was added to the available options in es5 here https://github.com/microsoft/TypeScript/pull/40709/files
so I assumed it would also be in the resolved options at that point
I'm happy to move it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
moved, though I'm not 100% on how I set up the tests for it
also, worried that while it fixes a bug, it's a bit breaking because it was added into es5 half a year ago
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Daniel Rosenwasser (@DanielRosenwasser) previously commented that Intl isn't part of the ecmascript standard, so I think it should actually stay in ES5. Daniel, can you confirm?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We want this PR as it is, es2020 is the right pattern - these APIs may not tie directly to the esXXXX specs but they are released and supported in a similar way to how we structure these libs. This came out in 2020 and we should reflect that via the target - which this PR does.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR is good and we should get it in for 4.5 - I'll give Daniel a few days to give any last opinions and I'll merge otherwise.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've rebased this after #45647 got merged and assuming it's green, I'll merge tomorrow |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks like the new tests are still failing after the merge from main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
gentle nudge about the tests from main |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Once the tests pass I'll merge this for 4.6 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
ResolvedNumberFormatOptions is missing currencySign option
There was an error while loading. Please reload this page.