From: Shiwani Date: Sat, 19 Jan 2019 02:38:58 +0000 (+0530) Subject: [bugfix] (TypeScript) allow update of a single relativeTime handler X-Git-Tag: 2.24.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba125e707089c45311a4d14cac92f873aef79f19;p=thirdparty%2Fmoment.git [bugfix] (TypeScript) allow update of a single relativeTime handler --- diff --git a/moment.d.ts b/moment.d.ts index dfc3d5422..ec72fbc35 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -79,20 +79,20 @@ declare namespace moment { type RelativeTimeFuturePastVal = string | ((relTime: string) => string); interface RelativeTimeSpec { - future: RelativeTimeFuturePastVal; - past: RelativeTimeFuturePastVal; - s: RelativeTimeSpecVal; - ss: RelativeTimeSpecVal; - m: RelativeTimeSpecVal; - mm: RelativeTimeSpecVal; - h: RelativeTimeSpecVal; - hh: RelativeTimeSpecVal; - d: RelativeTimeSpecVal; - dd: RelativeTimeSpecVal; - M: RelativeTimeSpecVal; - MM: RelativeTimeSpecVal; - y: RelativeTimeSpecVal; - yy: RelativeTimeSpecVal; + future?: RelativeTimeFuturePastVal; + past?: RelativeTimeFuturePastVal; + s?: RelativeTimeSpecVal; + ss?: RelativeTimeSpecVal; + m?: RelativeTimeSpecVal; + mm?: RelativeTimeSpecVal; + h?: RelativeTimeSpecVal; + hh?: RelativeTimeSpecVal; + d?: RelativeTimeSpecVal; + dd?: RelativeTimeSpecVal; + M?: RelativeTimeSpecVal; + MM?: RelativeTimeSpecVal; + y?: RelativeTimeSpecVal; + yy?: RelativeTimeSpecVal; } interface LongDateFormatSpec {