Uh oh!
There was an error while loading. Please reload this page.
Adds [unit] and [unitDisplay] to NumberFormatOptions - #38013
Conversation
Barry May (barrymay)
commented
May 13, 2020
This PR is perfectly fine, but while you're at it would be nice to get notation in there too :) |
Ben Scott (BPScott)
commented
May 22, 2020
Notation is covered in #37721 |
Yo Nathan Shively-Sanders (@sandersn), any chance we'd be able to address before beta release in addition to #38013? I think this needs to be updated to go in |
Orta Therox (orta)
left a comment
There was a problem hiding this comment.
Did a read through some of the docs, looks good to me
I'll move this over to es2020.intl.d.ts |
What's going on with this? I'm using Typescript 4.1.3 and still getting an error I'm similarly getting internationalized units by using edit: adding "ES2020" to my "lib" option in my tsconfig fixes the first issue, but the second persists. I checked the definition and sure enough "unit" was missed from potential part types. Reported in #42004 |
Fixes#38012.
Adds the
unitandunitDisplayoption toNumberFormatOptionsinsrc/lib/es5.d.ts