Skip to content

Commit

Permalink
Properly allow null for ts1 and ts3
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 24, 2023
1 parent 38ea609 commit c6d2607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions moment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ declare namespace moment {
clone(): Duration;

humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;

humanize(argThresholds?: argThresholdOpts): string;

abs(): Duration;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions ts3.1-typings/moment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ declare namespace moment {
clone(): Duration;

humanize(argWithSuffix?: boolean, argThresholds?: argThresholdOpts): string;

humanize(argThresholds?: argThresholdOpts): string;

abs(): Duration;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c6d2607

Please sign in to comment.