source: trip-planner-front/node_modules/@angular/cdk/schematics/utils/ast.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
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 */
8import { Tree } from '@angular-devkit/schematics';
9import { Schema as ComponentOptions } from '@schematics/angular/component/schema';
10import { ProjectDefinition } from '@angular-devkit/core/src/workspace';
11import * as ts from 'typescript';
12/** Reads file given path and returns TypeScript source file. */
13export declare function parseSourceFile(host: Tree, path: string): ts.SourceFile;
14/** Import and add module to root app module. */
15export 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 */
23export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void;
24/** Wraps the internal find module from options with undefined path handling */
25export declare function findModuleFromOptions(host: Tree, options: ComponentOptions): Promise<string | undefined>;
Note: See TracBrowser for help on using the repository browser.