UNPKG

904 BTypeScriptView Raw
1import { Path } from '@angular-devkit/core';
2import { Tree } from '@angular-devkit/schematics';
3import { ModuleOptions as OriginalModuleOptions } from '@schematics/angular/utility/find-module';
4export interface ModuleOptions extends OriginalModuleOptions {
5}
6/**
7 * Find the module referred by a set of options passed to the schematics.
8 */
9export declare function findModuleFromOptions(host: Tree, options: ModuleOptions): Path | undefined;
10/**
11 * Function to find the "closest" module to a generated file's path.
12 */
13export declare function findModule(host: Tree, generateDir: string, moduleExt?: string, routingModuleExt?: string): Path;
14/**
15 * Build a relative path from one file path to another file path.
16 */
17export declare function buildRelativePath(from: string, to: string): string;
18export declare const MODULE_EXT = ".module.ts";
19export declare const ROUTING_MODULE_EXT = "-routing.module.ts";