Added 'defaultFormat' to Moment.js definition

This commit is contained in:
zgmnkv
2015-08-22 13:07:42 +04:00
parent 38fb591c6e
commit 0871a4a597
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -467,6 +467,8 @@ declare module moment {
*/
ISO_8601(): void;
defaultFormat: string;
}
}
+2
View File
@@ -459,3 +459,5 @@ moment.locale('en', {
});
console.log(moment.version);
moment.defaultFormat = 'YYYY-MM-DD HH:mm';