mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
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:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user