mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Add ES2015 Date constructor signature that accepts another Date (#10353)
This commit is contained in:
parent
7ee05ba809
commit
9c83243f33
4
src/lib/es2015.core.d.ts
vendored
4
src/lib/es2015.core.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user