UNPKG

ng-matero

Version:
12 lines (11 loc) 713 B
import * as ts from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript'; import { Change } from '@schematics/angular/utility/change'; export declare function findRouteNode(node: ts.Node, kind: ts.SyntaxKind, textKey: string, textValue?: string): ts.Node | null; export declare function findRouteNodeByKey(node: ts.Node, kind: ts.SyntaxKind, textKey: string): ts.Node | null; /** * Adds a new route declaration to the router module or routes. * * - module: `*-routing.module.ts` * - standalone: `*.routes.ts` */ export declare function addRouteDeclarationToModule(source: ts.SourceFile, fileToAdd: string, routeLiteral: string, standalone?: boolean, subModule?: boolean): Change;