]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Revert "Merge pull request #5827 from BobZombie:feature/fix_d.ts"
authorIskren Chernev <me@iskren.info>
Wed, 27 Dec 2023 10:29:01 +0000 (12:29 +0200)
committerIskren Chernev <me@iskren.info>
Wed, 27 Dec 2023 10:29:01 +0000 (12:29 +0200)
This reverts commit 651dff4d0c8914c9a9f73503bcb1a52e78de8a36, reversing
changes made to 8d46db8068ad6e841500308c9236f64fe22f8e04.

moment.d.ts
ts3.1-typings/moment.d.ts

index 03d1682801cd082793bb8c8551e4288abe8c9543..2c5b3cf46bb437818e4143e15ca5007aec2b736d 100644 (file)
@@ -194,7 +194,7 @@ declare namespace moment {
     clone(): Duration;
 
     humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;
-
+    
     humanize(argThresholds?: argThresholdOpts): string;
 
     abs(): Duration;
@@ -587,7 +587,7 @@ declare namespace moment {
 
     toArray(): number[];
     toDate(): Date;
-    toISOString(keepOffset?: boolean): string | void; // null
+    toISOString(keepOffset?: boolean): string;
     inspect(): string;
     toJSON(): string;
     unix(): number;
index 4f7478a5a1dfecfdead1638a9994aa2a72438ea0..51fe8c21e126272f7d101a7947f343e1b8cc80e9 100644 (file)
@@ -184,7 +184,7 @@ declare namespace moment {
     clone(): Duration;
 
     humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;
-
+    
     humanize(argThresholds?: argThresholdOpts): string;
 
     abs(): Duration;
@@ -575,7 +575,7 @@ declare namespace moment {
 
     toArray(): [number, number, number, number, number, number, number];
     toDate(): Date;
-    toISOString(keepOffset?: boolean): string | null;
+    toISOString(keepOffset?: boolean): string;
     inspect(): string;
     toJSON(): string;
     unix(): number;