Skip to content

Commit 9c83243

Browse files
authored
Add ES2015 Date constructor signature that accepts another Date (microsoft#10353)
1 parent 7ee05ba commit 9c83243

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/es2015.core.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ interface ArrayConstructor {
6868
of<T>(...items: T[]): Array<T>;
6969
}
7070

71+
interface DateConstructor {
72+
new (value: Date): Date;
73+
}
74+
7175
interface Function {
7276
/**
7377
* Returns the name of the function. Function names are read-only and can not be changed.

0 commit comments

Comments
 (0)