Update fullCalendar types

`height` accepts `'auto'` and `'parent'` ([source](https://fullcalendar.io/docs/display/height/))
`slotDuration` accepts "anything that the moment.duration constructor accepts" ([source](https://fullcalendar.io/docs/utilities/Duration/), [duration declaration](https://github.com/moment/moment/blob/develop/moment.d.ts#L643))
This commit is contained in:
Quentin
2017-04-12 23:22:12 +02:00
committed by GitHub
parent fa01d57f2c
commit d3930d8d41

View File

@@ -50,7 +50,7 @@ export interface Options extends AgendaOptions, EventDraggingResizingOptions, Dr
weekNumbers?: boolean;
weekNumberCalculation?: any; // String/Function
businessHours?: boolean | BusinessHours | BusinessHours[];
height?: number;
height?: number | 'auto' | 'parent';
contentHeight?: number;
aspectRatio?: number;
handleWindowResize?: boolean;
@@ -150,7 +150,7 @@ export interface Options extends AgendaOptions, EventDraggingResizingOptions, Dr
export interface AgendaOptions {
allDaySlot?: boolean;
allDayText?: string;
slotDuration?: moment.Duration;
slotDuration?: moment.DurationInputArg1;
slotLabelFormat?: string;
slotLabelInterval?: moment.Duration;
snapDuration?: moment.Duration;