# lib Update Request - `fractionalSecondDigits`, `dateStyle`, `timeStyle`, `dayPeriod` are in ES2021 draft, not ES2020. - NumberFormatOptions should have the list of sanctioned unit to prevent `RangeError`. Reference upstream issue: https://github.com/formatjs/formatjs/issues/2616 <!-- Please fill in each section completely. Thank you! Are you here for one of these commonly-requested lib changes? * Object.keys - see https://stackoverflow.com/questions/55012174/ * Array methods - see https://github.com/microsoft/TypeScript/issues/36554 * parseInt, parseFloat, isFinite, isNaN, etc. - see https://github.com/microsoft/TypeScript/issues/4002 The DOM lib is maintained elsewhere and you can skip a step by filing issues/PRs for the DOM at that repo. See https://github.com/microsoft/TypeScript-DOM-lib-generator --> ## Configuration Check <!-- If you're missing common new methods like Array.includes, you may have a misconfigured project. Try setting `lib: "es2020"` and checking whether the type you want is present. You can diagnose further by running `tsc` with `--listFilesOnly` or `--showConfig`. Conversely, if you are seeing built-in methods you expect to *not* see, check your 'lib' setting or review your dependencies for lib/reference directives that might be polluting your global scope. This is common when using the 'node' type library. See https://github.com/microsoft/TypeScript/issues/40184 Replace the text below: --> ## Missing / Incorrect Definition lib/es202.intl.d.ts ## Sample Code ## Documentation Link https://402.ecma-international.org/7.0/
Activity
[-]`fractionalSecondDigits` should not be in es2020.intl.d.ts[/-][+]es2020.intl.d.ts is inaccurate[/+]Remove attributes added in es2021 from es2020 - re: microsoft#42944
Intl 2021 Updates (#45647)
orta commentedon Sep 8, 2021
In with #45647 👍🏻