Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 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 { Path } from '@angular-devkit/core';
|
---|
| 9 | import { Tree } from '@angular-devkit/schematics';
|
---|
| 10 | export interface ModuleOptions {
|
---|
| 11 | module?: string;
|
---|
| 12 | name: string;
|
---|
| 13 | flat?: boolean;
|
---|
| 14 | path?: string;
|
---|
| 15 | skipImport?: boolean;
|
---|
| 16 | moduleExt?: string;
|
---|
| 17 | routingModuleExt?: string;
|
---|
| 18 | }
|
---|
| 19 | export declare const MODULE_EXT = ".module.ts";
|
---|
| 20 | export declare const ROUTING_MODULE_EXT = "-routing.module.ts";
|
---|
| 21 | /**
|
---|
| 22 | * Find the module referred by a set of options passed to the schematics.
|
---|
| 23 | */
|
---|
| 24 | export declare function findModuleFromOptions(host: Tree, options: ModuleOptions): Path | undefined;
|
---|
| 25 | /**
|
---|
| 26 | * Function to find the "closest" module to a generated file's path.
|
---|
| 27 | */
|
---|
| 28 | export declare function findModule(host: Tree, generateDir: string, moduleExt?: string, routingModuleExt?: string): Path;
|
---|
| 29 | /**
|
---|
| 30 | * Build a relative path from one file path to another file path.
|
---|
| 31 | */
|
---|
| 32 | export declare function buildRelativePath(from: string, to: string): string;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.