Update moment-node.d.ts

As of verstion 2.12.0 it is possible to list all locales that have been loaded and are available to use:

moment.locales(), added this new method to type definition. 

check: 
http://momentjs.com/docs/#/i18n/getting-locale/
This commit is contained in:
Robbert van Markus
2016-03-10 17:48:32 +01:00
parent 0144ad5a74
commit 34f5ad3f8e
+1 -1
View File
@@ -325,7 +325,7 @@ declare module moment {
locale(language: string): Moment;
locale(reset: boolean): Moment;
locale(): string;
locales() : string[];
localeData(language: string): Moment;
localeData(reset: boolean): Moment;
localeData(): MomentLanguage;