UNPKG

754 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { CliOptions } from './cli_options';
3import NgOptions from './options';
4import { VinylFile } from './vinyl_file';
5export { UserError } from './tsc';
6export interface CodegenExtension {
7 /**
8 * Returns the generated file names.
9 */
10 (ngOptions: NgOptions, cliOptions: CliOptions, program: ts.Program, host: ts.CompilerHost): Promise<string[]>;
11}
12export declare function createBundleIndexHost(ngOptions: NgOptions, rootFiles: string[], host: ts.CompilerHost): {
13 host: ts.CompilerHost;
14 indexName?: string;
15 errors?: ts.Diagnostic[];
16};
17export declare function main(project: string | VinylFile, cliOptions: CliOptions, codegen?: CodegenExtension, options?: ts.CompilerOptions): Promise<any>;