From af76651cccc99c57301c408310d4e47774da4f61 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 14 Feb 2020 11:21:50 -0800 Subject: [PATCH] refactor: update tscplugin api to match google3 (#35455) PR Close #35455 --- packages/compiler-cli/src/ngtsc/tsc_plugin.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/tsc_plugin.ts b/packages/compiler-cli/src/ngtsc/tsc_plugin.ts index 12ea560a3e..d533b8a3ee 100644 --- a/packages/compiler-cli/src/ngtsc/tsc_plugin.ts +++ b/packages/compiler-cli/src/ngtsc/tsc_plugin.ts @@ -51,9 +51,7 @@ interface TscPlugin { getNextProgram(): ts.Program; - prepareEmit(): { - transformers: ts.CustomTransformers, - }; + createTransformers(): ts.CustomTransformers; } /** @@ -106,5 +104,5 @@ export class NgTscPlugin implements TscPlugin { getNextProgram(): ts.Program { return this.compiler.getNextProgram(); } - prepareEmit(): {transformers: ts.CustomTransformers;} { return this.compiler.prepareEmit(); } + createTransformers(): ts.CustomTransformers { return this.compiler.prepareEmit().transformers; } }