UNPKG

816 BTypeScriptView Raw
1import * as ts from 'typescript';
2export interface CompilerInfo {
3 compilerPath: string;
4 compilerVersion: string;
5 tsImpl: typeof ts;
6}
7export 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}
26export interface OutputFile {
27 text: string;
28 sourceMap: string;
29 declaration: ts.OutputFile;
30}
31export declare type TsConfig = ts.ParsedCommandLine;