fix: Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19
What: To fix incorrect onCaughtError type inference in RenderOptions.
Repro: https://codesandbox.io/p/devbox/delicate-voice-7wnf7z?file=%2Ftest%2Frender.test-d.ts%3A6%2C5-6%2C28
Why: As explained above.
How: Update TS types.
Checklist:
- [ ] Documentation added to the docs site
- [ ] Tests - React v18 types: No impact - React v19 types: Fixed
- [x] TypeScript definitions updated
- [ ] Ready to be merged
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit f68378eb928379ed3c9abeb44fc4b35be07f716e:
| Sandbox | Source |
|---|---|
| react-testing-library-examples | Configuration |
Type checking failed.
Solution: https://github.com/fb55/entities/pull/1851
Workaround: Set skipLibCheck in tsconfig.json to true
Typechecking is failing now.