You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React.FocusEventHandler becomes React$FocusEventHandler - is the Typescript 4.5.x output even expected and it was not working in 4.4.x properly?
The Record is not transformed anymore.
Debugging:
Depending on which package manager you use, it can happen that it "tricks" you. I wanted to upgrade Typescript and try different versions out, but I recognized, that sometimes a Typescript folder will be placed into ./node_modules/flowgen/node_modules. Its version doesn't reflect necessarily the version of Typescript you have defined in the package.json. Indeed, if a clean install happens without having a yarn.lock file, yarn doesn't nest a different Typescript version in the flowgen folder. Or just delete it manually to be sure to always use the Typescript folder in the root node_modules folder. The Flowgen package itself doesn't define a fixed Typescript version and allows everything from 4.0.0 until < 5.0.0.
I will try to debug the issue and provide a MR in the next days, if I find some time for it! :)
The text was updated successfully, but these errors were encountered:
With Typescript 4.5.x some types are generated differently:
Source:
Generated output with Typescript 4.4.5:
Generated output with Typescript 4.5.4:
Changes:
Debugging:
Depending on which package manager you use, it can happen that it "tricks" you. I wanted to upgrade Typescript and try different versions out, but I recognized, that sometimes a Typescript folder will be placed into
./node_modules/flowgen/node_modules
. Its version doesn't reflect necessarily the version of Typescript you have defined in the package.json. Indeed, if a clean install happens without having a yarn.lock file, yarn doesn't nest a different Typescript version in the flowgen folder. Or just delete it manually to be sure to always use the Typescript folder in the root node_modules folder. The Flowgen package itself doesn't define a fixed Typescript version and allows everything from 4.0.0 until < 5.0.0.I will try to debug the issue and provide a MR in the next days, if I find some time for it! :)
The text was updated successfully, but these errors were encountered: