From: Erik Krogh Kristensen Date: Tue, 2 Aug 2016 12:19:02 +0000 (+0200) Subject: Updated the declaration file. X-Git-Tag: 2.15.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9941085c196a606137dfec237e35d38a624d7b6;p=thirdparty%2Fmoment.git Updated the declaration file. Added locales, new since 2.12 Added a new overload of isoWeekday, which is possible since the input is passed through `parseIsoWeekday` since 2.14 Added defaultFormatUtc, new since 2.13. --- diff --git a/moment.d.ts b/moment.d.ts index 560317b47..32422ec9c 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -366,6 +366,7 @@ declare namespace moment { weekday(d: number): Moment; isoWeekday(): number; isoWeekday(d: number): Moment; + isoWeekday(d: string): Moment; weekYear(): number; weekYear(d: number): Moment; isoWeekYear(): number; @@ -428,6 +429,8 @@ declare namespace moment { locale(reset: boolean): Moment; locale(): string; + locales(): string[]; + localeData(language: string): Moment; localeData(reset: boolean): Moment; localeData(): MomentLanguage; @@ -551,6 +554,7 @@ declare namespace moment { export var ISO_8601: MomentBuiltinFormat; export var defaultFormat: string; + export var defaultFormatUtc: string; } export = moment;