]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Add optional parameter keepOffset to toISOString (#4357)
authorblahDL <blahDL@users.noreply.github.com>
Tue, 19 Dec 2017 04:23:14 +0000 (14:23 +1000)
committerKunal Marwaha <marwahaha@berkeley.edu>
Tue, 19 Dec 2017 04:23:59 +0000 (23:23 -0500)
Update the typescript definition file to include the optional parameter keepOffset which was introduced in 2.20.0

moment.d.ts

index cdca9da0f2e08b65ddc702d221e83c6e51b49f46..0e749336074b6f66b122e0b2bd17a2c4837d7ce7 100644 (file)
@@ -542,7 +542,7 @@ declare namespace moment {
 
     toArray(): number[];
     toDate(): Date;
-    toISOString(): string;
+    toISOString(keepOffset?: boolean): string;
     inspect(): string;
     toJSON(): string;
     unix(): number;