Repository navigation
chore: fix react 19 integration tests type issues for v9 - #34722
Martin Hochel (Hotell) merged 11 commits into
Conversation
📊 Bundle size report✅ No changes found |
|
Pull request demo site: URL |
902dd80 to
dd84de5
Compare
Victor Genaev (mainframev)
left a comment
There was a problem hiding this comment.
Other than pending TODO everything looks good.
that's not best approach, as it's not backward compatible. We will use our own types #34733
that's odd, same input globs are specified in all the integration testing apps which work. lets undo the implicit dependency and troubleshoot what went actually wrong. have you used DT codemod for this ? https://github.com/eps1lon/types-react-codemod
|
e6697bc to
5bd5460
Compare
326eaa6 to
a7bb185
Compare
| }; | ||
|
|
||
| export type AccordionProps<Value = AccordionItemValue> = ComponentProps<AccordionSlots> & { | ||
| export type AccordionProps<Value = AccordionItemValue> = Omit<ComponentProps<AccordionSlots>, 'onToggle'> & { |
There was a problem hiding this comment.
we have custom onToggle callback prop and it conflicts with the native element prop.
83033b0 to
f998c6e
Compare
Previous Behavior
react-19-tests-v9:type-check:integrationtask was failing with 126 TS issuesNew Behavior
This PR fixes all those issues:
Changes:
JSX.Element=>React.ReactElement- there is no global namespaceJSXin React 19, we should useReact.JSX.ElementorReact.ReactElementReact.useRefrequires theintitialValueto be set (here is how it was in React 18 and here how it's look like in 19)Related Issue(s)