Merge pull request #28137 from leonard-thieu/moment-duration-format/module

[moment-duration-format] Add initialization function.
This commit is contained in:
Benjamin Lichtman
2018-08-16 13:33:50 -07:00
committed by GitHub
3 changed files with 10 additions and 1 deletions
+4
View File
@@ -90,3 +90,7 @@ declare module "moment" {
type TemplateFunction = ((this: DurationFormatSettings) => string);
}
declare function momentDurationFormatSetup(_moment: typeof moment): void;
export = momentDurationFormatSetup;
@@ -0,0 +1,4 @@
import moment = require("moment");
import momentDurationFormatSetup = require("moment-duration-format");
momentDurationFormatSetup(moment);
+2 -1
View File
@@ -18,6 +18,7 @@
},
"files": [
"index.d.ts",
"moment-duration-format-tests.ts"
"moment-duration-format-tests.ts",
"test/module-tests.ts"
]
}