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