mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
User defined type guards in Moment (#9282)
This commit is contained in:
6
moment/moment-node.d.ts
vendored
6
moment/moment-node.d.ts
vendored
@@ -605,10 +605,10 @@ declare namespace moment {
|
||||
|
||||
invalid(parsingFlags?: Object): Moment;
|
||||
isMoment(): boolean;
|
||||
isMoment(m: any): boolean;
|
||||
isDate(m: any): boolean;
|
||||
isMoment(m: any): m is Moment;
|
||||
isDate(m: any): m is Date;
|
||||
isDuration(): boolean;
|
||||
isDuration(d: any): boolean;
|
||||
isDuration(d: any): d is Duration;
|
||||
|
||||
/**
|
||||
* @deprecated since version 2.8.0
|
||||
|
||||
Reference in New Issue
Block a user