Add ES2015 Date constructor signature that accepts another Date (#10353)

This commit is contained in:
Yui 2016-08-15 15:16:54 -07:00 committed by GitHub
parent 7ee05ba809
commit 9c83243f33

View File

@ -68,6 +68,10 @@ interface ArrayConstructor {
of<T>(...items: T[]): Array<T>;
}
interface DateConstructor {
new (value: Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.