mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 14:38:20 +08:00
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:
4
types/fullcalendar/index.d.ts
vendored
4
types/fullcalendar/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user