forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Merge PR DefinitelyTyped#58380 [react-big-calendar] Fix/rbc outdate…
…d types by @decimoseptimo * update SlotInfo see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Calendar.js#L339 https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Month.js#L322 https://github.com/jquense/react-big-calendar/blob/76e625494c3c9344c322604d1f4aaf17d3944dbd/src/TimeGrid.js#L103 * Replace 4 instanceOf(Date) see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Calendar.js#L94 * update onSelecting see https://jquense.github.io/react-big-calendar/examples/index.html#prop-onSelecting * update TimeGridProps see https://github.com/jquense/react-big-calendar/blob/76e625494c3c9344c322604d1f4aaf17d3944dbd/src/TimeGrid.js#L350 * update onRangeChange see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Calendar.js#L299 * update EventPropGetter see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Calendar.js#L555 * remove stringOrDate type views get its props from calendar, so it's safe to delete this type see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/Month.js#L76 * remove Culture type and make it optional see jquense/react-big-calendar#2041 (comment) * run prettier * reintroduce stringOrDate type Just removed in a previous commmit due to being undocumented in the official repo. Most references are to a 'Date', not to 'string'. But due to some things breaking it's brought back and applied at specific places. a thorough review is needed as to where stringOrDate or Date applies * fix typos in TimeGridProps * remove Culture type from tests * remove explicit undefined for already optional parameters Apparently there was a tslint update that affects us see https://github.com/Microsoft/dtslint/blob/master/docs/redundant-undefined.md * add dateCellWrapperProps see https://github.com/jquense/react-big-calendar/blob/ad8defa643692911fd0b00c71b70de94715140a9/src/BackgroundCells.js#L53 * Remove index prop from DateCellWrapperProps * Revert "remove explicit undefined for already optional parameters" This reverts commit 08d27d2. * fix: breaking CI build see https://github.com/Microsoft/dtslint/blob/master/docs/redundant-undefined.md * Revert "remove Culture type" This reverts commit 0213d0c. * Revert "remove Culture type from tests" This reverts commit 92eb96f. * fix: update culture Make culture optional where appropiate, and update `string | undefined` to `Culture | undefined` * refactor: add `| undefined` to all of the optional properties * bump up version * add to definitions
- Loading branch information
1 parent
c0c1466
commit 262e983
Showing
1 changed file
with
116 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters