diff --git a/packages/compiler-cli/src/ngtsc/translator/src/api/ast_factory.ts b/packages/compiler-cli/src/ngtsc/translator/src/api/ast_factory.ts index d8182f3885..d887e0d4a5 100644 --- a/packages/compiler-cli/src/ngtsc/translator/src/api/ast_factory.ts +++ b/packages/compiler-cli/src/ngtsc/translator/src/api/ast_factory.ts @@ -97,7 +97,7 @@ export interface AstFactory { * @param parameters the names of the function's parameters. * @param body a statement (or a block of statements) that are the body of the function. */ - createFunctionDeclaration(functionName: string|null, parameters: string[], body: TStatement): + createFunctionDeclaration(functionName: string, parameters: string[], body: TStatement): TStatement; /** diff --git a/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.ts b/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.ts index 06a86d7c56..b039e0c954 100644 --- a/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.ts +++ b/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.ts @@ -79,13 +79,13 @@ export class TypeScriptAstFactory implements AstFactory ts.createParameter(undefined, undefined, undefined, param)), undefined, body); }