mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #28137 from leonard-thieu/moment-duration-format/module
[moment-duration-format] Add initialization function.
This commit is contained in:
+4
@@ -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);
|
||||
@@ -18,6 +18,7 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"moment-duration-format-tests.ts"
|
||||
"moment-duration-format-tests.ts",
|
||||
"test/module-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user