From a668601585aa895decb0daf6934f8f3314c18919 Mon Sep 17 00:00:00 2001 From: Cleison Stein Date: Mon, 29 Aug 2016 11:06:31 +0100 Subject: [PATCH 1/2] added moment type for goToDate https://fullcalendar.io/docs/current_date/gotoDate/ --- fullCalendar/fullCalendar.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fullCalendar/fullCalendar.d.ts b/fullCalendar/fullCalendar.d.ts index 65df012185..1e3efd1958 100644 --- a/fullCalendar/fullCalendar.d.ts +++ b/fullCalendar/fullCalendar.d.ts @@ -318,7 +318,7 @@ interface JQuery { /** * Moves the calendar to an arbitrary date. */ - fullCalendar(method: 'gotoDate', date: Date | string): void; + fullCalendar(method: 'gotoDate', moment.Moment | Date | string): void; /** * Moves the calendar forward/backward an arbitrary amount of time. @@ -403,4 +403,4 @@ interface JQuery { interface JQueryStatic { fullCalendar: FullCalendar.Calendar; -} \ No newline at end of file +} From ef946711a315a6f5527a3bda25618645d91de9e3 Mon Sep 17 00:00:00 2001 From: Cleison Stein Date: Tue, 30 Aug 2016 09:49:27 +0100 Subject: [PATCH 2/2] variable name fixed --- fullCalendar/fullCalendar.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fullCalendar/fullCalendar.d.ts b/fullCalendar/fullCalendar.d.ts index 1e3efd1958..fd43e51c5f 100644 --- a/fullCalendar/fullCalendar.d.ts +++ b/fullCalendar/fullCalendar.d.ts @@ -318,7 +318,7 @@ interface JQuery { /** * Moves the calendar to an arbitrary date. */ - fullCalendar(method: 'gotoDate', moment.Moment | Date | string): void; + fullCalendar(method: 'gotoDate', date: moment.Moment | Date | string): void; /** * Moves the calendar forward/backward an arbitrary amount of time.