Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /// <amd-module name="@angular/compiler-cli/linker/src/linker_import_generator" />
|
---|
| 2 | /**
|
---|
| 3 | * @license
|
---|
| 4 | * Copyright Google LLC All Rights Reserved.
|
---|
| 5 | *
|
---|
| 6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 7 | * found in the LICENSE file at https://angular.io/license
|
---|
| 8 | */
|
---|
| 9 | import { ImportGenerator, NamedImport } from '../../src/ngtsc/translator';
|
---|
| 10 | /**
|
---|
| 11 | * A class that is used to generate imports when translating from Angular Output AST to an AST to
|
---|
| 12 | * render, such as Babel.
|
---|
| 13 | *
|
---|
| 14 | * Note that, in the linker, there can only be imports from `@angular/core` and that these imports
|
---|
| 15 | * must be achieved by property access on an `ng` namespace identifer, which is passed in via the
|
---|
| 16 | * constructor.
|
---|
| 17 | */
|
---|
| 18 | export declare class LinkerImportGenerator<TExpression> implements ImportGenerator<TExpression> {
|
---|
| 19 | private ngImport;
|
---|
| 20 | constructor(ngImport: TExpression);
|
---|
| 21 | generateNamespaceImport(moduleName: string): TExpression;
|
---|
| 22 | generateNamedImport(moduleName: string, originalSymbol: string): NamedImport<TExpression>;
|
---|
| 23 | private assertModuleName;
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.