Address more test failures

This commit is contained in:
Tomáš Hübelbauer
2019-02-20 13:13:12 +01:00
committed by GitHub
parent b5a5b64148
commit 6eb9c5a828
+5 -5
View File
@@ -1,14 +1,14 @@
import BigCalendar, { BigCalendarProps, Event } from '../../index.d.ts';
import BigCalendar, { BigCalendarProps, Event, stringOrDate } from '../../index';
import React from 'react';
type withDragAndDropProps<TEvent> = {
interface withDragAndDropProps<TEvent> {
onEventDrop?: (args: { event: TEvent, start: stringOrDate, end: stringOrDate, allDay: boolean }) => void;
onEventResize?: (args: { event: TEvent, start: stringOrDate, end: stringOrDate, allDay: boolean }) => void;
resizable?: boolean;
};
declare class DragAndDropCalendar<TEvent extends Event = Event, TResource extends object = object>
extends React.Component<BigCalendarProps<TEvent, TResource> & withDragAndDropProps<TEvent>>, {}
extends React.Component<BigCalendarProps<TEvent, TResource> & withDragAndDropProps<TEvent>> {}
function withDragAndDrop(calendar: typeof BigCalendar): typeof DragAndDropCalendar;
declare function withDragAndDrop(calendar: typeof BigCalendar): typeof DragAndDropCalendar;
export = withDragAndDrop;