typescript-transformer-handbook
typescript-transformer-handbook copied to clipboard
TypeScript 5.0 unfortunately breaks most examples
trafficstars
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.
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.