1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import ts from 'typescript';
|
10 | import { ParsedConfiguration } from './perform_compile';
|
11 | import * as api from './transformers/api';
|
12 | declare type TsickleModule = typeof import('tsickle');
|
13 | export declare function main(args: string[], consoleError?: (s: string) => void, config?: NgcParsedConfiguration, customTransformers?: api.CustomTransformers, programReuse?: {
|
14 | program: api.Program | undefined;
|
15 | }, modifiedResourceFiles?: Set<string> | null, tsickle?: TsickleModule): number;
|
16 | export declare function mainDiagnosticsForTest(args: string[], config?: NgcParsedConfiguration, programReuse?: {
|
17 | program: api.Program | undefined;
|
18 | }, modifiedResourceFiles?: Set<string> | null, tsickle?: TsickleModule): {
|
19 | exitCode: number;
|
20 | diagnostics: ReadonlyArray<ts.Diagnostic>;
|
21 | };
|
22 | export interface NgcParsedConfiguration extends ParsedConfiguration {
|
23 | watch?: boolean;
|
24 | }
|
25 | export declare function readNgcCommandLineAndConfiguration(args: string[]): NgcParsedConfiguration;
|
26 | export declare function readCommandLineAndConfiguration(args: string[], existingOptions?: api.CompilerOptions, ngCmdLineOptions?: string[]): ParsedConfiguration;
|
27 | export declare function watchMode(project: string, options: api.CompilerOptions, consoleError: (s: string) => void): {
|
28 | close: () => void;
|
29 | ready: (cb: () => void) => void;
|
30 | firstCompileResult: readonly ts.Diagnostic[];
|
31 | };
|
32 | export {};
|