Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
refactor: vendor used typescript ast utils from @schematics/angular #18155
Instead of directly accessing utility functions from
Using the vendored TS version from
Note: Marked as P2 as it is needed to unblock angular/angular#33717
Instead of directly accessing utility functions from `@schematics/angular`, we should vendor the AST utils we need. This is necessary because `@schematics/angular` vendors TypeScript, and this causes a type mismatch if we try to pass in `ts.Node`'s which are created from the TypeScript version available to `@angular/cdk/schematics`. Using the vendored TS version from `@schematics/angular` is not an option as it complicates our setup, gives us less control, and will be hard to consistently enforce in the schematic code. We tried to do this with the `version agnostic typescript` code, but it had downsides in terms of type safety and convenience.