Merge pull request #31894 from chemass/feature/moment-range

moment-range: Added 'isRange' method definition
This commit is contained in:
Benjamin Lichtman
2019-01-23 15:14:00 -08:00
committed by GitHub
+2
View File
@@ -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;
}