UNPKG

669 BTypeScriptView Raw
1import { Tree, UpdateRecorder } from '@angular-devkit/schematics';
2import { SourceFile } from 'typescript';
3import { Change } from './../utility';
4export declare function insertChanges(aChanges: Change[], aRecorder: UpdateRecorder): void;
5export declare function changeSourceFile(aFile: string, aOp: (aFile: string, aContent: SourceFile) => Change[], aHost: Tree): void;
6/**
7 * Changes the identified module by adding a couple of imports
8 *
9 * @param aFile the filename
10 * @param aModules the modules to be added
11 * @param aHost the tree
12 */
13export declare function addImportsToModule(aFile: string, aModules: {
14 [identifier: string]: string;
15}, aHost: Tree): void;