mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
* refactor: use union type in `DateConstructor` Add support for union types in `DateConstructor` This will add support for something like the below; ` let date; string | number; const date = new Date(x); ` Closes: #21758 * fix: date constructor can't be passed `string | Date`, but takes either individually Closes: #20900
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.