forked from MCJack123/TypeScriptToLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypescript-internal.d.ts
More file actions
51 lines (39 loc) · 1.47 KB
/
typescript-internal.d.ts
File metadata and controls
51 lines (39 loc) · 1.47 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;
}
interface CompilerOptions {
configFile?: TsConfigSourceFile;
configFilePath?: string;
}
interface TypeChecker {
getElementTypeOfArrayType(type: Type): Type | undefined;
getContextualTypeForObjectLiteralElement(element: ObjectLiteralElementLike): Type | undefined;
isTupleType(type: Type): boolean;
isArrayType(type: Type): boolean;
}
interface Symbol {
// false positive
// eslint-disable-next-line @typescript-eslint/ban-types
parent?: Symbol;
}
function getObjectFlags(type: Type): ObjectFlags;
function transformJsx(context: TransformationContext): (x: SourceFile) => SourceFile;
export type OuterExpression =
| ParenthesizedExpression
| TypeAssertion
| AsExpression
| NonNullExpression
| PartiallyEmittedExpression;
function skipOuterExpressions(node: Expression, kinds?: OuterExpressionKinds): Expression;
export function isOuterExpression(node: Node, kinds?: OuterExpressionKinds): node is OuterExpression;
}