Merge pull request #34616 from TomasHubelbauer/patch-1

Fix the onRangeChange event types in react-big-calendar
This commit is contained in:
Benjamin Lichtman
2019-04-11 10:49:54 -07:00
committed by GitHub

View File

@@ -8,6 +8,7 @@
// janb87 <https://github.com/janb87>
// Daniel Thorne <https://github.com/ldthorne>
// Panagiotis Rikarnto Siavelis <https://github.com/siavelis>
// Tomas Hubelbauer <https://github.com/TomasHubelbauer>
// Lucas Silva Souza <https://github.com/lksilva>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -252,7 +253,7 @@ export interface BigCalendarProps<TEvent extends Event = Event, TResource extend
onDoubleClickEvent?: (event: TEvent, e: React.SyntheticEvent<HTMLElement>) => void;
onSelectEvent?: (event: TEvent, e: React.SyntheticEvent<HTMLElement>) => void;
onSelecting?: (range: { start: stringOrDate, end: stringOrDate }) => boolean | undefined | null;
onRangeChange?: (range: { start: stringOrDate, end: stringOrDate }) => void;
onRangeChange?: (range: Array<Date | { start: stringOrDate, end: stringOrDate }>) => void;
selected?: any;
views?: Views;
drilldownView?: View | null;