From 5b1aa827d29ccaeb4af8e20685cb6a84febf655b Mon Sep 17 00:00:00 2001 From: carl-coolblue Date: Mon, 11 Feb 2019 15:49:05 +0100 Subject: [PATCH] pickaday: add explicit null types to match usage for setStartRange, setDate and setEndRange --- types/pikaday/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/pikaday/index.d.ts b/types/pikaday/index.d.ts index 3adb7fc340..5a956cc504 100644 --- a/types/pikaday/index.d.ts +++ b/types/pikaday/index.d.ts @@ -44,7 +44,7 @@ declare class Pikaday { * can optionally be passed as the second parameter to prevent triggering * of the onSelect callback, allowing the date to be set silently. */ - setDate(date: string | Date, preventOnSelect?: boolean): void; + setDate(date: string | Date | null, preventOnSelect?: boolean): void; /** * Returns a Moment.js object for the selected date (Moment must be @@ -101,13 +101,13 @@ declare class Pikaday { * Update the range start date. For using two Pikaday instances to * select a date range. */ - setStartRange(date: Date): void; + setStartRange(date: Date | null): void; /** * Update the range end date. For using two Pikaday instances to select * a date range. */ - setEndRange(date: Date): void; + setEndRange(date: Date | null): void; /** * Update the HTML.