From d4efe01e5c6d48c8a6c13e271d44dc589961aa8e Mon Sep 17 00:00:00 2001 From: Nam Nguyen Thanh Date: Fri, 1 Dec 2017 16:46:01 +0700 Subject: [PATCH 1/2] Introduce new param for changeView --- types/fullcalendar/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fullcalendar/index.d.ts b/types/fullcalendar/index.d.ts index 196de10898..4b0f600c6a 100644 --- a/types/fullcalendar/index.d.ts +++ b/types/fullcalendar/index.d.ts @@ -995,7 +995,7 @@ declare global { /** * Immediately switches to a different view. */ - fullCalendar(method: 'changeView', viewName: string): void; + fullCalendar(method: 'changeView', viewName: string, dateOrRange: moment.Moment | Date | string | TimeRange): void; /** * Moves the calendar one step back (either by a month, week, or day). From b53f9eac8effb22d82379dbdfe517291fd155c02 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Thanh Date: Mon, 4 Dec 2017 09:04:41 +0700 Subject: [PATCH 2/2] Change dataOrRange to optional param --- types/fullcalendar/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fullcalendar/index.d.ts b/types/fullcalendar/index.d.ts index 4b0f600c6a..3d5ff28f12 100644 --- a/types/fullcalendar/index.d.ts +++ b/types/fullcalendar/index.d.ts @@ -995,7 +995,7 @@ declare global { /** * Immediately switches to a different view. */ - fullCalendar(method: 'changeView', viewName: string, dateOrRange: moment.Moment | Date | string | TimeRange): void; + fullCalendar(method: 'changeView', viewName: string, dateOrRange?: moment.Moment | Date | string | TimeRange): void; /** * Moves the calendar one step back (either by a month, week, or day).