File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export interface RenderOptions<
127127 * @see {@link https://react.dev/reference/react-dom/client/createRoot#parameters createRoot#options }
128128 */
129129 onCaughtError ?: ReactDOMClient . RootOptions extends {
130- onCaughtError : infer OnCaughtError
130+ onCaughtError ? : infer OnCaughtError
131131 }
132132 ? OnCaughtError
133133 : never
Original file line number Diff line number Diff line change @@ -264,11 +264,9 @@ export function testContainer() {
264264}
265265
266266export function testErrorHandlers ( ) {
267- // React 19 types are not used in tests. Verify manually if this works with `"@types/react": "npm:types-react@rc"`
267+ // React 19 types are currently used in tests.
268268 render ( null , {
269269 // Should work with React 19 types
270- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
271- // @ts -expect-error
272270 onCaughtError : ( ) => { } ,
273271 } )
274272 render ( null , {
You can’t perform that action at this time.
0 commit comments