From 6eb9c5a828c1a07f4047e698eb4741cb8d705ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20H=C3=BCbelbauer?= Date: Wed, 20 Feb 2019 13:13:12 +0100 Subject: [PATCH] Address more test failures --- types/react-big-calendar/lib/addons/dragAndDrop.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/react-big-calendar/lib/addons/dragAndDrop.d.ts b/types/react-big-calendar/lib/addons/dragAndDrop.d.ts index 9b96bb7f7e..0908373780 100644 --- a/types/react-big-calendar/lib/addons/dragAndDrop.d.ts +++ b/types/react-big-calendar/lib/addons/dragAndDrop.d.ts @@ -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 = { +interface withDragAndDropProps { 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 - extends React.Component & withDragAndDropProps>, {} + extends React.Component & withDragAndDropProps> {} -function withDragAndDrop(calendar: typeof BigCalendar): typeof DragAndDropCalendar; +declare function withDragAndDrop(calendar: typeof BigCalendar): typeof DragAndDropCalendar; export = withDragAndDrop; -