1 | import { ClassDeclaration, Decorator, Node, NodeArray, ObjectLiteralElement, ObjectLiteralExpression, ScriptTarget, SourceFile, SyntaxKind } from 'typescript';
|
2 | export declare function getTypescriptSourceFile(filePath: string, fileContent: string, languageVersion?: ScriptTarget, setParentNodes?: boolean): SourceFile;
|
3 | export declare function removeDecorators(fileName: string, source: string): string;
|
4 | export declare function findNodes(sourceFile: SourceFile, node: Node, kind: SyntaxKind, keepGoing?: boolean): Node[];
|
5 | export declare function replaceNode(filePath: string, fileContent: string, node: Node, replacement: string): string;
|
6 | export declare function removeNode(filePath: string, fileContent: string, node: Node): string;
|
7 | export declare function getNodeStringContent(sourceFile: SourceFile, node: Node): string;
|
8 | export declare function appendAfter(source: string, node: Node, toAppend: string): string;
|
9 | export declare function appendEmpty(source: string, position: number, toAppend: string): string;
|
10 | export declare function appendBefore(filePath: string, fileContent: string, node: Node, toAppend: string): string;
|
11 | export declare function insertNamedImportIfNeeded(filePath: string, fileContent: string, namedImport: string, fromModule: string): string;
|
12 | export declare function replaceNamedImport(filePath: string, fileContent: string, namedImportOriginal: string, namedImportReplacement: string): string;
|
13 | export declare function replaceImportModuleSpecifier(filePath: string, fileContent: string, moduleSpecifierOriginal: string, moduleSpecifierReplacement: string): string;
|
14 | export declare function checkIfFunctionIsCalled(filePath: string, fileContent: string, functionName: string): boolean;
|
15 | export declare function getClassDeclarations(sourceFile: SourceFile): ClassDeclaration[];
|
16 | export declare function getNgModuleClassName(filePath: string, fileContent: string): string;
|
17 | export declare function getNgModuleDecorator(fileName: string, sourceFile: SourceFile): Decorator;
|
18 | export declare function getNgModuleObjectLiteralArg(decorator: Decorator): ObjectLiteralExpression;
|
19 | export declare function findObjectLiteralElementByName(properties: NodeArray<ObjectLiteralElement>, identifierToLookFor: string): ObjectLiteralElement;
|
20 | export declare function appendNgModuleDeclaration(filePath: string, fileContent: string, declaration: string): string;
|
21 | export declare function appendNgModuleProvider(filePath: string, fileContent: string, declaration: string): string;
|
22 | export declare function appendNgModuleExports(filePath: string, fileContent: string, declaration: string): string;
|
23 | export declare const NG_MODULE_DECORATOR_TEXT = "NgModule";
|