mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
[moment] Accept MomentInput for moment().set()
As per http://momentjs.com/docs/#/get-set/set/
This commit is contained in:
1 parent
14ab703f43
commit
a63be38549
1 file changed
+1
Vendored
+1
@@ -303,6 +303,7 @@ declare module moment {
|
||||
|
||||
get(unit: string): number;
|
||||
set(unit: string, value: number): Moment;
|
||||
set(objectLiteral: MomentInput): Moment;
|
||||
}
|
||||
|
||||
type formatFunction = () => string;
|
||||
|
||||
Reference in new issue
Block a user