Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { Tree } from '@angular-devkit/schematics';
|
---|
| 9 | import { Schema as ComponentOptions } from '@schematics/angular/component/schema';
|
---|
| 10 | import { ProjectDefinition } from '@angular-devkit/core/src/workspace';
|
---|
| 11 | import * as ts from 'typescript';
|
---|
| 12 | /** Reads file given path and returns TypeScript source file. */
|
---|
| 13 | export declare function parseSourceFile(host: Tree, path: string): ts.SourceFile;
|
---|
| 14 | /** Import and add module to root app module. */
|
---|
| 15 | export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: ProjectDefinition): void;
|
---|
| 16 | /**
|
---|
| 17 | * Import and add module to specific module path.
|
---|
| 18 | * @param host the tree we are updating
|
---|
| 19 | * @param modulePath src location of the module to import
|
---|
| 20 | * @param moduleName name of module to import
|
---|
| 21 | * @param src src location to import
|
---|
| 22 | */
|
---|
| 23 | export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void;
|
---|
| 24 | /** Wraps the internal find module from options with undefined path handling */
|
---|
| 25 | export declare function findModuleFromOptions(host: Tree, options: ComponentOptions): Promise<string | undefined>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.