From: Nils Knappmeier Date: Fri, 10 Jun 2016 12:33:12 +0000 (+0200) Subject: Add #creationData() to TypeScript interface in moment.d.ts X-Git-Tag: 2.15.0~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44a022de4ffba50d7ce6b7837a8c3cd6a0b3b06;p=thirdparty%2Fmoment.git Add #creationData() to TypeScript interface in moment.d.ts --- diff --git a/moment.d.ts b/moment.d.ts index e0eb68d66..618d96c9b 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -224,6 +224,18 @@ declare namespace moment { "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms"); + interface MomentCreationData { + input?: string; + format?: string; + locale?: MomentLocale; + isUTC: boolean; + strict: boolean; + } + + interface MomentLocale { + // Details about the locale structure are not in the documentation so they are omitted here. + } + interface Moment { format(format: string): string; format(): string; @@ -319,6 +331,7 @@ declare namespace moment { isValid(): boolean; invalidAt(): number; + creationData(): MomentCreationData; parsingFlags(): MomentParsingFlags; year(y: number): Moment;