DefinitelyTyped/types/react-big-calendar
Sebastian Busch 0e1560485f
🤖 Merge PR #46226 react-big-calendar: improve types, fix withDragAndDrop, fix tests by @sbusch
* fix types for other components (compare with event and eventWrapper, they just have no special props)

* also define props for view-specific event component override

* fix withDragAndDrop type definition. disable automatic exports.

* any is unnecessary here

* fix tests

* revert change to ViewsProps due to @eps1lon comments / https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43215

* change DragAndDropCalendarProps from type to interface, as suggested by @DanielRosenwasser

* 🤖 Merge PR #46905 Package Proclaim: Make msg parameter optional for all assertions by @JakeChampion

* Make msg param optional for assertions in proclaim

* Mark message and operator params of fail as optional

* Update tests to check the optional parameters are indeed optionals

* Make the commonjs export of proclaim point to proclaim.ok function

* Add test to prove proclaim.ok points to proclaim

* Properly describe props for (custom) View, with new test with wrong prop (expecting error). Pass generic types for event and resource at more places (and fix test).

Plus: turned off automatic exports for index.d.ts aswell due to own Omit (added to keep compat with older TS versions).

* typo

* Revert strict views (with their disfunctional tests), but retain ViewProps for optional use (guarded with a test)

Strict views cannot expressed du to current limitaion in TypeScript, see <https://github.com/Microsoft/TypeScript/issues/13195>

Co-authored-by: Jake Champion <me@jakechampion.name>
2020-08-22 05:16:56 -04:00
..
lib/addons
index.d.ts
react-big-calendar-tests.tsx
tsconfig.json
tslint.json