From: Iskren Chernev Date: Wed, 27 Dec 2023 10:29:01 +0000 (+0200) Subject: Revert "Merge pull request #5827 from BobZombie:feature/fix_d.ts" X-Git-Tag: 2.30.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52ffb2bd49fdef0149d13874e7aede361342198;p=thirdparty%2Fmoment.git Revert "Merge pull request #5827 from BobZombie:feature/fix_d.ts" This reverts commit 651dff4d0c8914c9a9f73503bcb1a52e78de8a36, reversing changes made to 8d46db8068ad6e841500308c9236f64fe22f8e04. --- diff --git a/moment.d.ts b/moment.d.ts index 03d168280..2c5b3cf46 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -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; diff --git a/ts3.1-typings/moment.d.ts b/ts3.1-typings/moment.d.ts index 4f7478a5a..51fe8c21e 100644 --- a/ts3.1-typings/moment.d.ts +++ b/ts3.1-typings/moment.d.ts @@ -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;