@types/react-big-calendar
Advanced tools
Comparing version 0.20.19 to 0.20.20
@@ -136,3 +136,3 @@ // Type definitions for react-big-calendar 0.20 | ||
export interface Components<TEvent extends Event = Event> { | ||
export interface Components<TEvent extends object = Event> { | ||
event?: React.ComponentType<EventProps<TEvent>>; | ||
@@ -183,3 +183,3 @@ eventWrapper?: React.ComponentType<EventWrapperProps<TEvent>>; | ||
export interface EventProps<TEvent extends Event = Event> { | ||
export interface EventProps<TEvent extends object = Event> { | ||
event: TEvent; | ||
@@ -189,3 +189,3 @@ title: string; | ||
export interface EventWrapperProps<TEvent extends Event = Event> { | ||
export interface EventWrapperProps<TEvent extends object = Event> { | ||
// https://github.com/intljusticemission/react-big-calendar/blob/27a2656b40ac8729634d24376dff8ea781a66d50/src/TimeGridEvent.js#L28 | ||
@@ -254,3 +254,4 @@ style?: React.CSSProperties & { xOffset: number }; | ||
export interface BigCalendarProps<TEvent extends Event = Event, TResource extends object = object> extends React.Props<BigCalendar<TEvent, TResource>> { | ||
export interface BigCalendarProps<TEvent extends object = Event, TResource extends object = object> | ||
extends React.Props<BigCalendar<TEvent, TResource>> { | ||
localizer: DateLocalizer; | ||
@@ -265,7 +266,12 @@ | ||
onDrillDown?: (date: Date, view: View) => void; | ||
onSelectSlot?: (slotInfo: { start: stringOrDate, end: stringOrDate, slots: Date[] | string[], action: 'select' | 'click' | 'doubleClick' }) => void; | ||
onSelectSlot?: (slotInfo: { | ||
start: stringOrDate; | ||
end: stringOrDate; | ||
slots: Date[] | string[]; | ||
action: 'select' | 'click' | 'doubleClick'; | ||
}) => 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; | ||
onRangeChange?: (range: Date[] | { start: stringOrDate, end: stringOrDate }) => void; | ||
onSelecting?: (range: { start: stringOrDate; end: stringOrDate }) => boolean | undefined | null; | ||
onRangeChange?: (range: Date[] | { start: stringOrDate; end: stringOrDate }) => void; | ||
selected?: any; | ||
@@ -278,3 +284,3 @@ views?: Views; | ||
popup?: boolean; | ||
popupOffset?: number | { x: number, y: number }; | ||
popupOffset?: number | { x: number; y: number }; | ||
selectable?: boolean | 'ignoreEvents'; | ||
@@ -322,7 +328,10 @@ longPressThreshold?: number; | ||
export default class BigCalendar<TEvent extends Event = Event, TResource extends object = object> extends React.Component<BigCalendarProps<TEvent, TResource>> { | ||
export default class BigCalendar< | ||
TEvent extends object = Event, | ||
TResource extends object = object | ||
> extends React.Component<BigCalendarProps<TEvent, TResource>> { | ||
components: { | ||
dateCellWrapper: React.ComponentType, | ||
dayWrapper: React.ComponentType, | ||
eventWrapper: React.ComponentType<TEvent>, | ||
dateCellWrapper: React.ComponentType; | ||
dayWrapper: React.ComponentType; | ||
eventWrapper: React.ComponentType<TEvent>; | ||
}; | ||
@@ -341,6 +350,6 @@ /** | ||
static Navigate: { | ||
PREVIOUS: 'PREV', | ||
NEXT: 'NEXT', | ||
TODAY: 'TODAY', | ||
DATE: 'DATE', | ||
PREVIOUS: 'PREV'; | ||
NEXT: 'NEXT'; | ||
TODAY: 'TODAY'; | ||
DATE: 'DATE'; | ||
}; | ||
@@ -347,0 +356,0 @@ /** |
{ | ||
"name": "@types/react-big-calendar", | ||
"version": "0.20.19", | ||
"version": "0.20.20", | ||
"description": "TypeScript definitions for react-big-calendar", | ||
@@ -85,4 +85,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "3f780561d04effecc3b3450a6f4dcce040a78a9ba3a9f77ace1716f5ed43eebc", | ||
"typesPublisherContentHash": "a184438fb3d8ea6797588f6023c271476476a7a1a5397a418d8941f927c77066", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-big-calendar ( https://github.com/intljusticemission/react-big-calendar ). | ||
This package contains type definitions for react-big-calendar (https://github.com/intljusticemission/react-big-calendar). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Sun, 16 Jun 2019 07:18:16 GMT | ||
* Last updated: Wed, 19 Jun 2019 23:21:03 GMT | ||
* Dependencies: @types/prop-types, @types/react | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Piotr Witek <https://github.com/piotrwitek>, Austin Turner <https://github.com/paustint>, Krzysztof Bezrąk <https://github.com/pikpok>, Sebastian Silbermann <https://github.com/eps1lon>, Paul Potsides <https://github.com/strongpauly>, 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>, Siarhey Belofost <https://github.com/SergeyBelofost>, Mark Nelissen <https://github.com/marknelissen>, Eric Kenney <https://github.com/KenneyE>. | ||
These definitions were written by Piotr Witek <https://github.com/piotrwitek>, Austin Turner <https://github.com/paustint>, Krzysztof Bezrąk <https://github.com/pikpok>, Sebastian Silbermann <https://github.com/eps1lon>, Paul Potsides <https://github.com/strongpauly>, 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>, Siarhey Belofost <https://github.com/SergeyBelofost>, Mark Nelissen <https://github.com/marknelissen>, and Eric Kenney <https://github.com/KenneyE>. |
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
17878
331