mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-17 11:45:58 +08:00
Merge pull request #6268 from cprecioso/patch-2
[moment] Accept MomentInput for moment().set()
This commit is contained in:
1
moment/moment-node.d.ts
vendored
1
moment/moment-node.d.ts
vendored
@@ -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