mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Address more test failures
This commit is contained in:
+5
-5
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user