From 0f4f5d607dc35e70f37f8e76fa43951678275732 Mon Sep 17 00:00:00 2001 From: Aaron King Date: Thu, 14 Nov 2013 02:07:20 -0500 Subject: [PATCH] Expanded static methods for 2.4.0 --- moment/moment.d.ts | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/moment/moment.d.ts b/moment/moment.d.ts index bc36f498d..38bf0335f 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -284,12 +284,26 @@ interface MomentStatic { parseZone(date: string): Moment; - // These return either string or string[] - months(format?: string, index?: number): any; - monthsShort(format?: string, index?: number): any; - weekdays(format?: string, index?: number): any; - weekdaysShort(format?: string, index?: number): any; - weekdaysMin(format?: string, index?: number): any; + months(): string[]; + months(index: number): string; + months(format: string): string[]; + months(format: string, index: number): string; + monthsShort(): string[]; + monthsShort(index: number): string; + monthsShort(format: string): string[]; + monthsShort(format: string, index: number): string; + weekdays(): string[]; + weekdays(index: number): string; + weekdays(format: string): string[]; + weekdays(format: string, index: number): string; + weekdaysShort(): string[]; + weekdaysShort(index: number): string; + weekdaysShort(format: string): string[]; + weekdaysShort(format: string, index: number): string; + weekdaysMin(): string[]; + weekdaysMin(index: number): string; + weekdaysMin(format: string): string[]; + weekdaysMin(format: string, index: number): string; normalizeUnits(unit: string): string;