1 | import * as ts from 'typescript';
|
2 | import { Change } from './change';
|
3 | import { Observable } from 'rxjs/Observable';
|
4 | import 'rxjs/add/observable/empty';
|
5 | import 'rxjs/add/observable/of';
|
6 | import 'rxjs/add/operator/do';
|
7 | import 'rxjs/add/operator/filter';
|
8 | import 'rxjs/add/operator/last';
|
9 | import 'rxjs/add/operator/map';
|
10 | import 'rxjs/add/operator/mergeMap';
|
11 | import 'rxjs/add/operator/toArray';
|
12 | import 'rxjs/add/operator/toPromise';
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function getSource(filePath: string): ts.SourceFile;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare function getSourceNodes(sourceFile: ts.SourceFile): Observable<ts.Node>;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export declare function insertAfterLastOccurrence(nodes: ts.Node[], toInsert: string, file: string, fallbackPos?: number, syntaxKind?: ts.SyntaxKind): Change;
|
39 | export declare function getContentOfKeyLiteral(source: ts.SourceFile, node: ts.Node): string;
|
40 | export declare function getDecoratorMetadata(source: ts.SourceFile, identifier: string, module: string): Observable<ts.Node>;
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare function addDeclarationToModule(modulePath: string, classifiedName: string, importPath: string): Promise<Change>;
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare function addImportToModule(modulePath: string, classifiedName: string, importPath: string): Promise<Change>;
|
51 |
|
52 |
|
53 |
|
54 | export declare function addProviderToModule(modulePath: string, classifiedName: string, importPath: string): Promise<Change>;
|
55 |
|
56 |
|
57 |
|
58 | export declare function addExportToModule(modulePath: string, classifiedName: string, importPath: string): Promise<Change>;
|