diff --git a/fullCalendar/fullCalendar-tests.ts b/fullCalendar/fullCalendar-tests.ts index a85dd1d6e..6c60f3ddb 100644 --- a/fullCalendar/fullCalendar-tests.ts +++ b/fullCalendar/fullCalendar-tests.ts @@ -87,7 +87,7 @@ $('#calendar').fullCalendar({ } }); -var view: FullCalendar.View = $('#calendar').fullCalendar('getView'); +var view = $('#calendar').fullCalendar('getView'); alert("The view's title is " + view.title); $(document).ready(function () { @@ -407,7 +407,7 @@ $('#my-today-button').click(function () { $('#calendar').fullCalendar('gotoDate', 1, 0, 1); $('#my-button').click(function () { - var d: Date = $('#calendar').fullCalendar('getDate'); + var d = $('#calendar').fullCalendar('getDate'); alert("The current date of the calendar is " + d); }); diff --git a/fullCalendar/fullCalendar.d.ts b/fullCalendar/fullCalendar.d.ts index d11c68e04..b26920dc2 100644 --- a/fullCalendar/fullCalendar.d.ts +++ b/fullCalendar/fullCalendar.d.ts @@ -180,7 +180,33 @@ declare module FullCalendar { interface JQuery { fullCalendar(options: FullCalendar.Options): JQuery; - fullCalendar(method: string, ...args: Array): JQuery; + fullCalendar(method: string, arg1: any, arg2: any, arg3: any): void; + fullCalendar(method: 'option', option: string, value?: any): void; + fullCalendar(method: 'render'): void; + fullCalendar(method: 'destroy'): void; + fullCalendar(method: 'prev'): void; + fullCalendar(method: 'next'): void; + fullCalendar(method: 'prevYear'): void; + fullCalendar(method: 'nextYear'): void; + fullCalendar(method: 'today'): void; + fullCalendar(method: 'getView'): FullCalendar.View; + fullCalendar(method: 'changeView', viewName: string): void; + fullCalendar(method: 'gotoDate', year: number, month?: number, date?: number): void; + fullCalendar(method: 'gotoDate', date: Date): void; + fullCalendar(method: 'incrementDate', year: number, month?: number, date?: number): void; + fullCalendar(method: 'getDate'): Date; + fullCalendar(method: 'select', startDate: Date, endDate: Date, allDay: boolean): void; + fullCalendar(method: 'unselect'): void; + fullCalendar(method: 'updateEvent', event: FullCalendar.EventObject): void; + fullCalendar(method: 'clientEvents', idOrfilter?: any): Array; + fullCalendar(method: 'clientEvents', idOrfilter?: (e: FullCalendar.EventObject) => boolean): Array; + fullCalendar(method: 'removeEvents', idOrfilter?: any): void; + fullCalendar(method: 'removeEvents', idOrfilter?: (e: FullCalendar.EventObject) => boolean): void; + fullCalendar(method: 'refreshEvents'): void; + fullCalendar(method: 'addEventSource', source: any): void; + fullCalendar(method: 'removeEventSource', source: any): void; + fullCalendar(method: 'renderEvent', event: FullCalendar.EventObject, stick?: boolean): void; + fullCalendar(method: 'rerenderEvents'): void; } interface JQueryStatic {