mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update moment.d.ts
Added isBefore/isAfter methods without parameters. According to the documentation it will default to the current time. see: http://momentjs.com/docs/#/query/is-before/
This commit is contained in:
Vendored
+2
@@ -124,6 +124,7 @@ interface Moment {
|
||||
daysInMonth(): number;
|
||||
isDST(): boolean;
|
||||
|
||||
isBefore(): boolean;
|
||||
isBefore(b: Moment): boolean;
|
||||
isBefore(b: string): boolean;
|
||||
isBefore(b: Number): boolean;
|
||||
@@ -135,6 +136,7 @@ interface Moment {
|
||||
isBefore(b: Date, granularity: string): boolean;
|
||||
isBefore(b: Array, granularity: string): boolean;
|
||||
|
||||
isAfter(): boolean;
|
||||
isAfter(b: Moment): boolean;
|
||||
isAfter(b: string): boolean;
|
||||
isAfter(b: Number): boolean;
|
||||
|
||||
Reference in New Issue
Block a user