]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Properly allow null for ts1 and ts3
authorIskren Chernev <me@iskren.info>
Sun, 24 Dec 2023 11:43:42 +0000 (13:43 +0200)
committerIskren Chernev <me@iskren.info>
Sun, 24 Dec 2023 11:43:42 +0000 (13:43 +0200)
moment.d.ts
ts3.1-typings/moment.d.ts

index 85bbfe0492eb693d2e98f8e55eb55274d624c778..03d1682801cd082793bb8c8551e4288abe8c9543 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 | null;
+    toISOString(keepOffset?: boolean): string | void; // null
     inspect(): string;
     toJSON(): string;
     unix(): number;
index 51fe8c21e126272f7d101a7947f343e1b8cc80e9..4f7478a5a1dfecfdead1638a9994aa2a72438ea0 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;
+    toISOString(keepOffset?: boolean): string | null;
     inspect(): string;
     toJSON(): string;
     unix(): number;