Alan Agius 7b9ceb85fa refactor: use union type in DateConstructor (#21757)
* 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
2018-02-08 12:22:37 -08:00
..
2017-06-22 11:51:00 -07:00
2017-05-24 09:50:38 -07:00
2017-03-17 13:54:18 -07:00

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.