1 | import * as ts from 'typescript';
|
2 | export interface CompilerInfo {
|
3 | compilerPath: string;
|
4 | compilerVersion: string;
|
5 | tsImpl: typeof ts;
|
6 | }
|
7 | export interface LoaderConfig {
|
8 | instance?: string;
|
9 | compiler?: string;
|
10 | configFileName?: string;
|
11 | configFileContent?: string;
|
12 | transpileOnly?: boolean;
|
13 | ignoreDiagnostics?: number[];
|
14 | compilerOptions?: ts.CompilerOptions;
|
15 | useTranspileModule?: boolean;
|
16 | useBabel?: boolean;
|
17 | babelCore?: string;
|
18 | babelOptions?: any;
|
19 | usePrecompiledFiles?: boolean;
|
20 | silent?: boolean;
|
21 | useCache?: boolean;
|
22 | cacheDirectory?: string;
|
23 | entryFileIsJs?: boolean;
|
24 | debug?: boolean;
|
25 | }
|
26 | export interface OutputFile {
|
27 | text: string;
|
28 | sourceMap: string;
|
29 | declaration: ts.OutputFile;
|
30 | }
|
31 | export declare type TsConfig = ts.ParsedCommandLine;
|