1 | import { Tree } from '@angular-devkit/schematics';
|
2 | import { WorkspaceProject } from '../angular';
|
3 | import { typescript } from '../cdk';
|
4 | /** Reads file given path and returns TypeScript source file. */
|
5 | export declare function getSourceFile(host: Tree, path: string): typescript.SourceFile;
|
6 | /** Import and add module to root app module. */
|
7 | export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: WorkspaceProject): void;
|
8 | /**
|
9 | * Import and add module to specific module path.
|
10 | * @param host the tree we are updating
|
11 | * @param modulePath src location of the module to import
|
12 | * @param moduleName name of module to import
|
13 | * @param src src location to import
|
14 | */
|
15 | export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void;
|