diff options
Diffstat (limited to 'node_modules/gulp-typescript/release/reporter.d.ts')
-rw-r--r-- | node_modules/gulp-typescript/release/reporter.d.ts | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/node_modules/gulp-typescript/release/reporter.d.ts b/node_modules/gulp-typescript/release/reporter.d.ts new file mode 100644 index 000000000..3dba518e1 --- /dev/null +++ b/node_modules/gulp-typescript/release/reporter.d.ts @@ -0,0 +1,41 @@ +import * as ts from 'typescript'; +import { VinylFile } from './types'; +export interface TypeScriptError extends Error { + fullFilename?: string; + relativeFilename?: string; + file?: VinylFile; + tsFile?: ts.SourceFile; + diagnostic: ts.Diagnostic; + startPosition?: { + position: number; + line: number; + character: number; + }; + endPosition?: { + position: number; + line: number; + character: number; + }; +} +export interface CompilationResult { + /** + * Only used when using isolatedModules. + */ + transpileErrors: number; + optionsErrors: number; + syntaxErrors: number; + globalErrors: number; + semanticErrors: number; + declarationErrors: number; + emitErrors: number; + emitSkipped: boolean; +} +export declare function emptyCompilationResult(): CompilationResult; +export interface Reporter { + error?: (error: TypeScriptError, typescript: typeof ts) => void; + finish?: (results: CompilationResult) => void; +} +export declare function nullReporter(): Reporter; +export declare function defaultReporter(): Reporter; +export declare function longReporter(): Reporter; +export declare function fullReporter(fullFilename?: boolean): Reporter; |