@types/react-big-calendar
Advanced tools
Comparing version 1.8.10 to 1.8.11
@@ -245,3 +245,3 @@ import { | ||
label: string; | ||
localizer: { messages: Messages }; | ||
localizer: { messages: Messages<TEvent> }; | ||
onNavigate: (navigate: NavigateAction, date?: Date) => void; | ||
@@ -288,3 +288,3 @@ onView: (view: View) => void; | ||
export interface Messages { | ||
export interface Messages<TEvent extends object = Event> { | ||
date?: string | undefined; | ||
@@ -304,3 +304,3 @@ time?: string | undefined; | ||
agenda?: string | undefined; | ||
showMore?: ((count: number) => string) | undefined; | ||
showMore?: ((count: number, remainingEvents: TEvent[], events: TEvent[]) => string) | undefined; | ||
noEventsInRange?: string | undefined; | ||
@@ -347,35 +347,35 @@ } | ||
startOfWeek: StartOfWeek; | ||
merge: (date: Date, time: Date) => Date | null; | ||
inRange: typeof inRange; | ||
lt: typeof lt; | ||
lte: typeof lte; | ||
gt: typeof gt; | ||
gte: typeof gte; | ||
eq: typeof eq; | ||
neq: typeof neq; | ||
startOf: typeof startOf; | ||
endOf: typeof endOf; | ||
add: typeof add; | ||
range: (start: Date, end: Date, unit?: Unit) => Date[]; | ||
diff: (dateA: Date, dateB: Date, unit?: Unit) => number; | ||
ceil: (date: Date, unit: Unit) => Date; | ||
min: typeof min; | ||
max: typeof max; | ||
minutes: typeof minutes; | ||
firstVisibleDay: (date: Date, localizer: any) => Date; | ||
lastVisibleDay: (date: Date, localizer: any) => Date; | ||
visibleDays: (date: Date, localizer: any) => Date[]; | ||
merge?: (date: Date, time: Date) => Date | null; | ||
inRange?: typeof inRange; | ||
lt?: typeof lt; | ||
lte?: typeof lte; | ||
gt?: typeof gt; | ||
gte?: typeof gte; | ||
eq?: typeof eq; | ||
neq?: typeof neq; | ||
startOf?: typeof startOf; | ||
endOf?: typeof endOf; | ||
add?: typeof add; | ||
range?: (start: Date, end: Date, unit?: Unit) => Date[]; | ||
diff?: (dateA: Date, dateB: Date, unit?: Unit) => number; | ||
ceil?: (date: Date, unit: Unit) => Date; | ||
min?: typeof min; | ||
max?: typeof max; | ||
minutes?: typeof minutes; | ||
firstVisibleDay?: (date: Date, localizer: any) => Date; | ||
lastVisibleDay?: (date: Date, localizer: any) => Date; | ||
visibleDays?: (date: Date, localizer: any) => Date[]; | ||
getSlotDate: (date: Date, minutesFromMidnight: number, offset: number) => Date; | ||
getTimezoneOffset: (date: Date) => number; | ||
getDstOffset: (date: Date, dateB: Date) => number; | ||
getTotalMin: (dateA: Date, dateB: Date) => number; | ||
getMinutesFromMidnight: (date: Date) => number; | ||
continuesPrior: (dateA: Date, dateB: Date) => boolean; | ||
continuesAfter: (dateA: Date, dateB: Date, dateC: Date) => boolean; | ||
sortEvents: (eventA: Event, eventB: Event) => boolean; | ||
inEventRange: (event: Event, range: DateRange) => boolean; | ||
isSameDate: (dateA: Date, dateB: Date) => boolean; | ||
startAndEndAreDateOnly: (dateA: Date, dateB: Date) => boolean; | ||
segmentOffset: number; | ||
getSlotDate?: (date: Date, minutesFromMidnight: number, offset: number) => Date; | ||
getTimezoneOffset?: (date: Date) => number; | ||
getDstOffset?: (date: Date, dateB: Date) => number; | ||
getTotalMin?: (dateA: Date, dateB: Date) => number; | ||
getMinutesFromMidnight?: (date: Date) => number; | ||
continuesPrior?: (dateA: Date, dateB: Date) => boolean; | ||
continuesAfter?: (dateA: Date, dateB: Date, dateC: Date) => boolean; | ||
sortEvents?: (eventA: Event, eventB: Event) => boolean; | ||
inEventRange?: (event: Event, range: DateRange) => boolean; | ||
isSameDate?: (dateA: Date, dateB: Date) => boolean; | ||
startAndEndAreDateOnly?: (dateA: Date, dateB: Date) => boolean; | ||
segmentOffset?: number; | ||
} | ||
@@ -392,3 +392,3 @@ | ||
format(value: FormatInput, format: string, culture?: Culture): string; | ||
messages: Messages; | ||
messages: Messages<Event>; | ||
@@ -483,3 +483,3 @@ merge: (date: Date, time: Date) => Date | null; | ||
components?: Components<TEvent, TResource> | undefined; | ||
messages?: Messages | undefined; | ||
messages?: Messages<TEvent> | undefined; | ||
dayLayoutAlgorithm?: DayLayoutAlgorithm | DayLayoutFunction<TEvent> | undefined; | ||
@@ -486,0 +486,0 @@ titleAccessor?: keyof TEvent | ((event: TEvent) => string) | undefined; |
{ | ||
"name": "@types/react-big-calendar", | ||
"version": "1.8.10", | ||
"version": "1.8.11", | ||
"description": "TypeScript definitions for react-big-calendar", | ||
@@ -102,4 +102,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-big-calendar", | ||
}, | ||
"typesPublisherContentHash": "6614bc3a254a7c5a74862af470c81b4ba1a6744eefb062d223184735f282ff52", | ||
"typesPublisherContentHash": "a655c76ab2ef932e3fba882644a542c86eccbe6b881926a931037e5af06da1d8", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 28 Aug 2024 07:07:27 GMT | ||
* Last updated: Thu, 12 Sep 2024 13:37:16 GMT | ||
* Dependencies: [@types/date-arithmetic](https://npmjs.com/package/@types/date-arithmetic), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,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
30198