mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #31894 from chemass/feature/moment-range
moment-range: Added 'isRange' method definition
This commit is contained in:
Vendored
+2
@@ -4,6 +4,7 @@
|
||||
// Wilgert Velinga <https://github.com/wilgert>
|
||||
// Juan Francisco Adame <https://github.com/franjuan>
|
||||
// MartynasZilinskas <https://github.com/MartynasZilinskas>
|
||||
// Che Coxshall <https://github.com/chemass>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import moment = require('moment');
|
||||
@@ -57,6 +58,7 @@ export class DateRange {
|
||||
export interface MomentRangeMethods {
|
||||
range(range: string | Date[] | moment.Moment[]): DateRange;
|
||||
range(start: Date | moment.Moment, end: Date | moment.Moment): DateRange;
|
||||
isRange(range: any): range is DateRange;
|
||||
within(range: DateRange): boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user