1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import * as ts from 'typescript';
|
9 | import { AnnotatorHost } from './annotator_host';
|
10 | import * as googmodule from './googmodule';
|
11 | import { ModulesManifest } from './modules_manifest';
|
12 | import * as tsmes from './ts_migration_exports_shim';
|
13 | export { pathToModuleName } from './cli_support';
|
14 | export { getGeneratedExterns } from './externs';
|
15 | export { FileMap, ModulesManifest } from './modules_manifest';
|
16 | export interface TsickleHost extends googmodule.GoogModuleProcessorHost, tsmes.TsMigrationExportsShimProcessorHost, AnnotatorHost {
|
17 | |
18 |
|
19 |
|
20 | transformDecorators?: boolean;
|
21 | |
22 |
|
23 |
|
24 | transformTypesToClosure?: boolean;
|
25 |
|
26 | generateTsMigrationExportsShim?: boolean;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | addDtsClutzAliases?: boolean;
|
32 | |
33 |
|
34 |
|
35 |
|
36 | shouldSkipTsickleProcessing(fileName: string): boolean;
|
37 | |
38 |
|
39 |
|
40 |
|
41 | shouldIgnoreWarningsForPath(filePath: string): boolean;
|
42 | |
43 |
|
44 |
|
45 |
|
46 | googmodule: boolean;
|
47 | |
48 |
|
49 |
|
50 | useDeclarationMergingTransformation?: boolean;
|
51 | |
52 |
|
53 |
|
54 | generateExtraSuppressions: boolean;
|
55 | }
|
56 | export declare function mergeEmitResults(emitResults: EmitResult[]): EmitResult;
|
57 | export interface EmitResult extends ts.EmitResult {
|
58 | modulesManifest: ModulesManifest;
|
59 | |
60 |
|
61 |
|
62 |
|
63 | externs: {
|
64 | [moduleId: string]: string;
|
65 | };
|
66 | |
67 |
|
68 |
|
69 |
|
70 | tsMigrationExportsShimFiles: tsmes.TsMigrationExportsShimFileMap;
|
71 | }
|
72 | export interface EmitTransformers {
|
73 |
|
74 | beforeTs?: ts.CustomTransformers['before'];
|
75 |
|
76 | afterTs?: ts.CustomTransformers['after'];
|
77 |
|
78 | afterDeclarations?: ts.CustomTransformers['afterDeclarations'];
|
79 | }
|
80 |
|
81 |
|
82 |
|
83 | export declare function emitWithTsickle(program: ts.Program, host: TsickleHost, tsHost: ts.CompilerHost, tsOptions: ts.CompilerOptions, targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback, cancellationToken?: ts.CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: EmitTransformers): EmitResult;
|
84 | export declare function emit(program: ts.Program, host: TsickleHost, writeFile: ts.WriteFileCallback, targetSourceFile?: ts.SourceFile, cancellationToken?: ts.CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: EmitTransformers): EmitResult;
|