mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moment: Add toISOString definition for version 2.1.0
This commit is contained in:
@@ -132,6 +132,7 @@ a8.diff(b8, 'years')
|
||||
a8.diff(b8, 'years', true);
|
||||
|
||||
moment([2007, 0, 29]).toDate();
|
||||
moment([2007, 1, 23]).toISOString();
|
||||
moment(1318874398806).valueOf();
|
||||
moment(1318874398806).unix();
|
||||
moment([2000]).isLeapYear();
|
||||
|
||||
Vendored
+1
@@ -105,6 +105,7 @@ interface Moment {
|
||||
diff(b: Moment, soort: string, round: boolean): number;
|
||||
|
||||
toDate(): Date;
|
||||
toISOString(): string;
|
||||
unix(): number;
|
||||
|
||||
isLeapYear(): boolean;
|
||||
|
||||
Reference in New Issue
Block a user