itsdouges/typescript-transformer-handbook

TypeScript 5.0 unfortunately breaks most examples

tmcw opened this issue ยท 2 comments

tmcw commented

Example in the playground

Unfortunately, most examples in this guide (and most of my code too ๐Ÿ˜† ) is broken in TypeScript 5.0 because the transformer type now requires its return to be a SourceFile, not just a Node.

hax commented

Another problem is ts.getMutableClone seems have been totally removed. (though it already be deprecated in previous versions).

Happy to have a pull request fixing things up! Unfortunately I won't have time to fix things.