refactor: update tscplugin api to match google3 (#35455)

PR Close #35455
This commit is contained in:
Alex Eagle 2020-02-14 11:21:50 -08:00 committed by Miško Hevery
parent f1ffa7a367
commit af76651ccc
1 changed files with 2 additions and 4 deletions

View File

@ -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; }
}