Skip to content

Commit

Permalink
[@types/react-big-calendar] Add dayLayoutAlgorithm property added in j…
Browse files Browse the repository at this point in the history
  • Loading branch information
felixh10r committed Feb 15, 2020
1 parent f2db20e commit 464a1d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/react-big-calendar/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Type definitions for react-big-calendar 0.22
// Project: https://github.com/intljusticemission/react-big-calendar
// Project: https://github.com/jquense/react-big-calendar
// Definitions by: Piotr Witek <https://github.com/piotrwitek>
// Austin Turner <https://github.com/paustint>
// Krzysztof Bezrąk <https://github.com/pikpok>
Expand All @@ -15,6 +15,7 @@
// Eric Kenney <https://github.com/KenneyE>
// Paito Anderson <https://github.com/PaitoAnderson>
// Jan Michalak <https://github.com/michalak111>
// Felix Hessenberger <https://github.com/fhessenberger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Validator } from 'prop-types';
Expand All @@ -33,6 +34,7 @@ export type ViewsProps = View[] | {
month?: boolean | React.ComponentType<any> & ViewStatic,
week?: boolean | React.ComponentType<any> & ViewStatic
};
export type DayLayoutAlgorithm = 'overlap' | 'no-overlap';
export type NavigateAction = 'PREV' | 'NEXT' | 'TODAY' | 'DATE';
export interface Event {
allDay?: boolean;
Expand Down Expand Up @@ -293,6 +295,7 @@ export interface CalendarProps<TEvent extends object = Event, TResource extends
formats?: Formats;
components?: Components<TEvent>;
messages?: Messages;
dayLayoutAlgorithm?: DayLayoutAlgorithm;
titleAccessor?: keyof TEvent | ((event: TEvent) => string);
tooltipAccessor?: keyof TEvent | ((event: TEvent) => string);
allDayAccessor?: keyof TEvent | ((event: TEvent) => boolean);
Expand Down
1 change: 1 addition & 0 deletions types/react-big-calendar/react-big-calendar-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class CalendarResource {
const end = slotInfo.end;
return true;
}}
dayLayoutAlgorithm="overlap"
views={['day']}
toolbar={true}
popup={true}
Expand Down

0 comments on commit 464a1d5

Please sign in to comment.