awesome-typescript-loader
Version:
Awesome TS loader for webpack
41 lines (36 loc) • 915 B
text/typescript
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 type TsConfig = ts.ParsedCommandLine