UNPKG

awesome-typescript-loader

Version:
37 lines (36 loc) 1.03 kB
import * as ts from 'typescript'; export interface CompilerInfo { compilerPath: string; compilerVersion: string; tsImpl: typeof ts; } export interface LoaderConfig { instance?: string; compiler?: string; configFileName?: string; configFileContent?: string; forceIsolatedModules?: boolean; errorsAsWarnings?: boolean; transpileOnly?: boolean; ignoreDiagnostics?: number[]; compilerOptions?: ts.CompilerOptions; useTranspileModule?: boolean; useBabel?: boolean; babelCore?: string; babelOptions?: any; usePrecompiledFiles?: boolean; silent?: boolean; useCache?: boolean; cacheDirectory?: string; entryFileIsJs?: boolean; debug?: boolean; reportFiles?: string[]; context?: string; getCustomTransformers?: string | ((program: ts.Program) => ts.CustomTransformers | undefined); } export interface OutputFile { text: string; sourceMap: string; declaration: ts.OutputFile; } export declare type TsConfig = ts.ParsedCommandLine;