typescript-transformer-handbook icon indicating copy to clipboard operation
typescript-transformer-handbook copied to clipboard

TypeScript 5.0 unfortunately breaks most examples

Open tmcw opened this issue 2 years ago • 2 comments
trafficstars

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.

tmcw avatar Mar 31 '23 21:03 tmcw

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

hax avatar Jun 15 '23 08:06 hax

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

itsdouges avatar Jun 15 '23 08:06 itsdouges