@types/react-big-calendar
Advanced tools
Comparing version 0.20.1 to 0.20.2
@@ -219,3 +219,3 @@ // Type definitions for react-big-calendar 0.20 | ||
export interface BigCalendarProps<T extends Event = Event> extends React.Props<BigCalendar<T>> { | ||
export interface BigCalendarProps<TEvent extends Event = Event, TResource extends object = object> extends React.Props<BigCalendar<TEvent, TResource>> { | ||
localizer: DateLocalizer; | ||
@@ -226,9 +226,9 @@ | ||
view?: View; | ||
events?: T[]; | ||
onNavigate?: (newDate: Date, action: Navigate) => void; | ||
events?: TEvent[]; | ||
onNavigate?: (newDate: Date, view: View, action: Navigate) => void; | ||
onView?: (view: View) => void; | ||
onDrillDown?: (date: Date, view: View) => void; | ||
onSelectSlot?: (slotInfo: { start: stringOrDate, end: stringOrDate, slots: Date[] | string[], action: 'select' | 'click' | 'doubleClick' }) => void; | ||
onDoubleClickEvent?: (event: T, e: React.SyntheticEvent<HTMLElement>) => void; | ||
onSelectEvent?: (event: T, e: React.SyntheticEvent<HTMLElement>) => void; | ||
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; | ||
@@ -248,3 +248,3 @@ selected?: any; | ||
rtl?: boolean; | ||
eventPropGetter?: EventPropGetter<T>; | ||
eventPropGetter?: EventPropGetter<TEvent>; | ||
slotPropGetter?: SlotPropGetter; | ||
@@ -260,10 +260,10 @@ dayPropGetter?: DayPropGetter; | ||
messages?: Messages; | ||
titleAccessor?: keyof T | ((event: T) => string); | ||
allDayAccessor?: keyof T | ((event: T) => boolean); | ||
startAccessor?: keyof T | ((event: T) => Date); | ||
endAccessor?: keyof T | ((event: T) => Date); | ||
resourceAccessor?: keyof T | ((event: T) => any); | ||
resources?: any[]; | ||
resourceIdAccessor?: keyof T | ((event: T) => any); | ||
resourceTitleAccessor?: keyof T | ((event: T) => string); | ||
titleAccessor?: keyof TEvent | ((event: TEvent) => string); | ||
allDayAccessor?: keyof TEvent | ((event: TEvent) => boolean); | ||
startAccessor?: keyof TEvent | ((event: TEvent) => Date); | ||
endAccessor?: keyof TEvent | ((event: TEvent) => Date); | ||
resourceAccessor?: keyof TEvent | ((event: TEvent) => any); | ||
resources?: TResource[]; | ||
resourceIdAccessor?: keyof TResource | ((resource: TResource) => any); | ||
resourceTitleAccessor?: keyof TResource | ((resource: TResource) => string); | ||
defaultView?: View; | ||
@@ -285,3 +285,3 @@ defaultDate?: Date; | ||
export default class BigCalendar<T extends Event = Event> extends React.Component<BigCalendarProps<T>> { | ||
export default class BigCalendar<TEvent extends Event = Event, TResource extends object = object> extends React.Component<BigCalendarProps<TEvent, TResource>> { | ||
components: { | ||
@@ -288,0 +288,0 @@ dateCellWrapper: React.ComponentType, |
{ | ||
"name": "@types/react-big-calendar", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"description": "TypeScript definitions for react-big-calendar", | ||
@@ -49,4 +49,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "ce818e27af68bf3220593dd537cbf4dc3435ac80228825970d7b8612804c2bec", | ||
"typesPublisherContentHash": "d0177fa73436fd9aa5d65e6d3bd9187fb67144211f767aa7ceed86dfc0aad9c1", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 20 Nov 2018 21:08:00 GMT | ||
* Dependencies: prop-types, react | ||
* Last updated: Wed, 05 Dec 2018 16:33:38 GMT | ||
* Dependencies: @types/prop-types, @types/react | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13959