console.log(newIntl.NumberFormat('en',{style: 'unit',unit: 'kilobyte',unitDisplay: 'short',}).format(1.5));Argument of type '{ style: string; unit: string; }' is not assignable to parameter of type 'NumberFormatOptions'.
Object literal may only specify known properties, and 'unit' does not exist in type 'NumberFormatOptions'.
TypeScript Version: 3.8.3 and Nightly
Search Terms: NumberFormatOptions unit unitDisplay
Code
Expected behavior:
unitandunitDisplayshould be usable forNumberFormatOptions.Actual behavior:
Playground Link:https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=5&pc=17#code/MYewdgziA2CmB00QHMAUZYHcAEBJMALtPAHICuAtgEawBOAYiLRQIYGoDksYHANNgG8AUNlHYIBAJ5wAXNg5kwASwJ8RYxSrkcA1kqRVJBWGrHZNBACJKIAB2gtJ2iAAsmq3kIC+ASngAzJlZ2AEZ4AFYfHwBuIA
Related Issues: