refactor(compiler): tighten type of TemplateParser._console
(#36741)
This property can actually be `null` when called from the language-service. This change allows us to remove the use of `!` to subvert the type system. PR Close #36741
This commit is contained in:

committed by
Andrew Kushnir

parent
7c8c41353b
commit
4172707346
@ -516,8 +516,8 @@ export class TypeScriptServiceHost implements LanguageServiceHost {
|
||||
const parser = new TemplateParser(
|
||||
new CompilerConfig(), this.reflector, expressionParser, new DomElementSchemaRegistry(),
|
||||
htmlParser,
|
||||
null!, // console
|
||||
[] // tranforms
|
||||
null, // console
|
||||
[] // tranforms
|
||||
);
|
||||
const htmlResult = htmlParser.parse(template.source, fileName, {
|
||||
tokenizeExpansionForms: true,
|
||||
|
Reference in New Issue
Block a user