From: Erik Krogh Kristensen Date: Mon, 6 Mar 2017 19:55:09 +0000 (+0100) Subject: Small fixes to the .d.ts file X-Git-Tag: 2.18.0~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d019cb58d44193ed1e66beebbbc88b66b62763;p=thirdparty%2Fmoment.git Small fixes to the .d.ts file --- diff --git a/moment.d.ts b/moment.d.ts index aaa955675..d3e7e8faa 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -58,7 +58,7 @@ declare namespace moment { doy: number; } - type CalendarSpecVal = string | ((m?: Moment, now?: Moment) => string); + type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string); interface CalendarSpec { sameDay?: CalendarSpecVal; nextDay?: CalendarSpecVal; @@ -399,11 +399,11 @@ declare namespace moment { type LocaleSpecifier = string | Moment | Duration | string[] | boolean; interface MomentCreationData { - input: string; - format: string; + input: MomentInput; + format?: MomentFormatSpecification; locale: Locale; isUTC: boolean; - strict: boolean; + strict?: boolean; } interface Moment { @@ -551,7 +551,7 @@ declare namespace moment { zone(b: number|string): Moment; utcOffset(): number; utcOffset(b: number|string, keepLocalTime?: boolean): Moment; - isUTCOffset(): boolean; + isUtcOffset(): boolean; daysInMonth(): number; isDST(): boolean;