From 8fcbd7d812d9ca7e553c13fa871471f53a090059 Mon Sep 17 00:00:00 2001 From: Trevor Robinson Date: Thu, 5 Mar 2020 16:07:14 -0600 Subject: [PATCH] Allow open ranges in Typescript Fixes https://github.com/rotaready/moment-range/issues/264 --- lib/moment-range.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moment-range.d.ts b/lib/moment-range.d.ts index 1bc672f..a7de4fa 100644 --- a/lib/moment-range.d.ts +++ b/lib/moment-range.d.ts @@ -5,7 +5,7 @@ export class DateRange { start: Moment; end: Moment; - constructor(start: Date | Moment, end: Date | Moment); + constructor(start: Date | Moment | null, end?: Date | Moment | null); constructor(range: [Date | Moment, Date | Moment]); constructor(range: string); constructor();