-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS 5.8 JSX.ElementChildrenAttribute break #61354
Comments
Hi there, I'm the one who broke this π¨ (#60880) But I believe the new error is correct. A bit of history: In the classic JSX transpilation mode ( const $el = React.createElement("div", null, "test"); However, under the modern const $el = _jsx("div", { children: "test" }); This means that in the new mode you can't change the name of This is why I changed so that I believe you should stop using |
@uhyo Sure. However I think it is undocumented break change. This feature here so many years π |
resolved. |
π Search Terms
5.8, return, type
π Version & Regression Information
β― Playground Link
No response
π» Code
I defined custom
ElementChildrenAttribute
, it work well before TS 5.8Once I upgrade to TS 5.8, JSX like below throw the errors.
π Actual behavior
Type { children: Element[]; } is not assignable to type
π Expected behavior
no errors
Additional information about the issue
full custom JSX declare
https://github.com/innoai-tech/vuekit/blob/main/nodepkg/vue-jsx-runtime/src/jsx-runtime.ts#L104-L153
The text was updated successfully, but these errors were encountered: