mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
1. Make String.prototype.localeCompare's `locales` parameter optional, so `undefined` is allowed. 2. Declare the `locales` parameter as a `string | string[]` union instead of using overloads. Having separate overloads for `string` and `string[]` unnecessarily prevents passing a `string | string[]`. (These overloads predate the introduction of union types.)
Read this!
The files within this directory are used to generate lib.d.ts and lib.es6.d.ts.
Generated files
Any files ending in .generated.d.ts aren't mean to be edited by hand.
If you need to make changes to such files, make a change to the input files for our library generator.