mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
[moment] Accept MomentInput for moment().set()
As per http://momentjs.com/docs/#/get-set/set/
This commit is contained in:
committed by
Carlos Precioso
parent
14ab703f43
commit
a63be38549
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