UNPKG

@angular/compiler-cli

Version:
24 lines (23 loc) 976 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { AstFactory, ImportGenerator, ImportRequest } from '../../src/ngtsc/translator'; /** * A class that is used to generate imports when translating from Angular Output AST to an AST to * render, such as Babel. * * Note that, in the linker, there can only be imports from `@angular/core` and that these imports * must be achieved by property access on an `ng` namespace identifier, which is passed in via the * constructor. */ export declare class LinkerImportGenerator<TStatement, TExpression> implements ImportGenerator<null, TExpression> { private factory; private ngImport; constructor(factory: AstFactory<TStatement, TExpression>, ngImport: TExpression); addImport(request: ImportRequest<null>): TExpression; private assertModuleName; }