mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
Update moment-duration-format to work correctly
Signed-off-by: Niklas Walter <walter.niklas@gmail.com>
This commit is contained in:
5
moment-duration-format/package.json
Normal file
5
moment-duration-format/package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
1
moment-duration-format/tslint.json
Normal file
1
moment-duration-format/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
9
types/moment-duration-format/index.d.ts
vendored
9
types/moment-duration-format/index.d.ts
vendored
@@ -1,11 +1,12 @@
|
||||
// Type definitions for moment-duration-format v1.3.0
|
||||
// Type definitions for moment-duration-format 1.3
|
||||
// Project: https://github.com/jsmreese/moment-duration-format
|
||||
// Definitions by: Swint De Coninck <https://github.com/SwintDC>
|
||||
// Definitions by: Swint De Coninck <https://github.com/SwintDC>, Niklas Walter <https://github.com/TwoStone>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as moment from "moment";
|
||||
|
||||
declare namespace moment {
|
||||
declare module "moment" {
|
||||
interface Duration {
|
||||
format(template: string, precision?: string, settings?: any): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user