forked from TypeScriptToLua/TypeScriptToLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypescript-internal.d.ts
More file actions
33 lines (25 loc) · 988 Bytes
/
typescript-internal.d.ts
File metadata and controls
33 lines (25 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { DiagnosticsProducingTypeChecker } from "./transformation/context";
export {};
declare module "typescript" {
function createDiagnosticReporter(system: System, pretty?: boolean): DiagnosticReporter;
function createWatchStatusReporter(system: System, pretty?: boolean): WatchStatusReporter;
interface System {
setBlocking?(): void;
}
interface Statement {
jsDoc?: JSDoc[];
}
interface Program {
getCommonSourceDirectory(): string;
getDiagnosticsProducingTypeChecker(): DiagnosticsProducingTypeChecker;
}
interface CompilerOptions {
configFile?: TsConfigSourceFile;
configFilePath?: string;
}
interface TypeChecker {
getElementTypeOfArrayType(type: Type): Type | undefined;
getContextualTypeForObjectLiteralElement(element: ObjectLiteralElementLike): Type | undefined;
}
function transformJsx(context: TransformationContext): (x: SourceFile) => SourceFile;
}