Skip to content

Commit 0dd4399

Browse files
committed
Fix tests.
1 parent d757d00 commit 0dd4399

16 files changed

+135
-135
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4629,7 +4629,7 @@ module ts {
46294629
if (target) {
46304630
if (!source) {
46314631
if (reportErrors) {
4632-
reportError(Diagnostics.Missing_0_index_signature_in_type_1, "[string] or [number]", typeToString(sourceType));
4632+
reportError(Diagnostics.Missing_0_index_signature_in_type_1, "[string]", typeToString(sourceType));
46334633
}
46344634
return Ternary.False;
46354635
}

tests/baselines/reference/APISample_compile.types

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export function compile(fileNames: string[], options: ts.CompilerOptions): void
2323
>fileNames : string[], Symbol(fileNames, Decl(APISample_compile.ts, 13, 24))
2424
>options : ts.CompilerOptions, Symbol(options, Decl(APISample_compile.ts, 13, 44))
2525
>ts : any, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
26-
>CompilerOptions : ts.CompilerOptions, Symbol(ts.CompilerOptions, Decl(typescript.d.ts, 1074, 5))
26+
>CompilerOptions : ts.CompilerOptions, Symbol(ts.CompilerOptions, Decl(typescript.d.ts, 1088, 5))
2727

2828
var program = ts.createProgram(fileNames, options);
2929
>program : ts.Program, Symbol(program, Decl(APISample_compile.ts, 14, 7))
3030
>ts.createProgram(fileNames, options) : ts.Program
31-
>ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1201, 113))
31+
>ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1215, 113))
3232
>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
33-
>createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1201, 113))
33+
>createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1215, 113))
3434
>fileNames : string[], Symbol(fileNames, Decl(APISample_compile.ts, 13, 24))
3535
>options : ts.CompilerOptions, Symbol(options, Decl(APISample_compile.ts, 13, 44))
3636

@@ -46,9 +46,9 @@ export function compile(fileNames: string[], options: ts.CompilerOptions): void
4646
>ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics) : ts.Diagnostic[]
4747
>ts.getPreEmitDiagnostics(program).concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
4848
>ts.getPreEmitDiagnostics(program) : ts.Diagnostic[]
49-
>ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1199, 98))
49+
>ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1213, 98))
5050
>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
51-
>getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1199, 98))
51+
>getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1213, 98))
5252
>program : ts.Program, Symbol(program, Decl(APISample_compile.ts, 14, 7))
5353
>concat : { <U extends ts.Diagnostic[]>(...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
5454
>emitResult.diagnostics : ts.Diagnostic[], Symbol(ts.EmitResult.diagnostics, Decl(typescript.d.ts, 820, 29))
@@ -67,24 +67,24 @@ export function compile(fileNames: string[], options: ts.CompilerOptions): void
6767
>line : number, Symbol(line, Decl(APISample_compile.ts, 20, 13))
6868
>character : number, Symbol(character, Decl(APISample_compile.ts, 20, 19))
6969
>diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : ts.LineAndCharacter
70-
>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1263, 46))
71-
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26))
70+
>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1277, 46))
71+
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1076, 26))
7272
>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27))
73-
>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26))
74-
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1263, 46))
75-
>diagnostic.start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25))
73+
>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1076, 26))
74+
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1277, 46))
75+
>diagnostic.start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1077, 25))
7676
>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27))
77-
>start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25))
77+
>start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1077, 25))
7878

7979
var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
8080
>message : string, Symbol(message, Decl(APISample_compile.ts, 21, 11))
8181
>ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n') : string
82-
>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67))
82+
>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1214, 67))
8383
>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
84-
>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67))
85-
>diagnostic.messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23))
84+
>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1214, 67))
85+
>diagnostic.messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1079, 23))
8686
>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27))
87-
>messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23))
87+
>messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1079, 23))
8888
>'\n' : string
8989

9090
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
@@ -94,9 +94,9 @@ export function compile(fileNames: string[], options: ts.CompilerOptions): void
9494
>log : any
9595
>`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}` : string
9696
>diagnostic.file.fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29))
97-
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26))
97+
>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1076, 26))
9898
>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27))
99-
>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26))
99+
>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1076, 26))
100100
>fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29))
101101
>line + 1 : number
102102
>line : number, Symbol(line, Decl(APISample_compile.ts, 20, 13))
@@ -153,16 +153,16 @@ compile(process.argv.slice(2), {
153153

154154
target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
155155
>target : ts.ScriptTarget, Symbol(target, Decl(APISample_compile.ts, 31, 45))
156-
>ts.ScriptTarget.ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1117, 16))
157-
>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5))
156+
>ts.ScriptTarget.ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1131, 16))
157+
>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1129, 5))
158158
>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
159-
>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5))
160-
>ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1117, 16))
159+
>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1129, 5))
160+
>ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1131, 16))
161161
>module : ts.ModuleKind, Symbol(module, Decl(APISample_compile.ts, 32, 32))
162-
>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17))
163-
>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5))
162+
>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1122, 17))
163+
>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1120, 5))
164164
>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20))
165-
>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5))
166-
>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17))
165+
>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1120, 5))
166+
>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1122, 17))
167167

168168
});

tests/baselines/reference/APISample_linter.types

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function delint(sourceFile: ts.SourceFile) {
2222
>delint : (sourceFile: ts.SourceFile) => void, Symbol(delint, Decl(APISample_linter.ts, 11, 33))
2323
>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23))
2424
>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
25-
>SourceFile : ts.SourceFile, Symbol(ts.SourceFile, Decl(typescript.d.ts, 740, 5), Decl(typescript.d.ts, 1261, 5))
25+
>SourceFile : ts.SourceFile, Symbol(ts.SourceFile, Decl(typescript.d.ts, 740, 5), Decl(typescript.d.ts, 1275, 5))
2626

2727
delintNode(sourceFile);
2828
>delintNode(sourceFile) : void
@@ -33,7 +33,7 @@ export function delint(sourceFile: ts.SourceFile) {
3333
>delintNode : (node: ts.Node) => void, Symbol(delintNode, Decl(APISample_linter.ts, 14, 27))
3434
>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24))
3535
>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
36-
>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1221, 32))
36+
>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1235, 32))
3737

3838
switch (node.kind) {
3939
>node.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38))
@@ -219,9 +219,9 @@ export function delint(sourceFile: ts.SourceFile) {
219219

220220
ts.forEachChild(node, delintNode);
221221
>ts.forEachChild(node, delintNode) : void
222-
>ts.forEachChild : <T>(node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1186, 48))
222+
>ts.forEachChild : <T>(node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1200, 48))
223223
>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
224-
>forEachChild : <T>(node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1186, 48))
224+
>forEachChild : <T>(node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1200, 48))
225225
>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24))
226226
>delintNode : (node: ts.Node) => void, Symbol(delintNode, Decl(APISample_linter.ts, 14, 27))
227227
}
@@ -230,20 +230,20 @@ export function delint(sourceFile: ts.SourceFile) {
230230
>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5))
231231
>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 50, 20))
232232
>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
233-
>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1221, 32))
233+
>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1235, 32))
234234
>message : string, Symbol(message, Decl(APISample_linter.ts, 50, 34))
235235

236236
let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());
237237
>line : number, Symbol(line, Decl(APISample_linter.ts, 51, 13))
238238
>character : number, Symbol(character, Decl(APISample_linter.ts, 51, 19))
239239
>sourceFile.getLineAndCharacterOfPosition(node.getStart()) : ts.LineAndCharacter
240-
>sourceFile.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1263, 46))
240+
>sourceFile.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1277, 46))
241241
>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23))
242-
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1263, 46))
242+
>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1277, 46))
243243
>node.getStart() : number
244-
>node.getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1226, 53))
244+
>node.getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1240, 53))
245245
>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 50, 20))
246-
>getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1226, 53))
246+
>getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1240, 53))
247247

248248
console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`);
249249
>console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`) : any
@@ -286,21 +286,21 @@ fileNames.forEach(fileName => {
286286
let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true);
287287
>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 59, 7))
288288
>ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true) : ts.SourceFile
289-
>ts.createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1190, 62))
289+
>ts.createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1204, 62))
290290
>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
291-
>createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1190, 62))
291+
>createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1204, 62))
292292
>fileName : any, Symbol(fileName, Decl(APISample_linter.ts, 57, 18))
293293
>readFileSync(fileName).toString() : any
294294
>readFileSync(fileName).toString : any
295295
>readFileSync(fileName) : any
296296
>readFileSync : any, Symbol(readFileSync, Decl(APISample_linter.ts, 9, 11))
297297
>fileName : any, Symbol(fileName, Decl(APISample_linter.ts, 57, 18))
298298
>toString : any
299-
>ts.ScriptTarget.ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1118, 16))
300-
>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5))
299+
>ts.ScriptTarget.ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1132, 16))
300+
>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1129, 5))
301301
>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6))
302-
>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5))
303-
>ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1118, 16))
302+
>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1129, 5))
303+
>ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1132, 16))
304304
>true : boolean
305305

306306
// delint it

tests/baselines/reference/APISample_transform.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ const source = "let x: string = 'string'";
1919
let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
2020
>result : string, Symbol(result, Decl(APISample_transform.ts, 13, 3))
2121
>ts.transpile(source, { module: ts.ModuleKind.CommonJS }) : string
22-
>ts.transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1729, 5))
22+
>ts.transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1743, 5))
2323
>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6))
24-
>transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1729, 5))
24+
>transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1743, 5))
2525
>source : string, Symbol(source, Decl(APISample_transform.ts, 11, 5))
2626
>{ module: ts.ModuleKind.CommonJS } : { [x: string]: ts.ModuleKind; module: ts.ModuleKind; }
2727
>module : ts.ModuleKind, Symbol(module, Decl(APISample_transform.ts, 13, 35))
28-
>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17))
29-
>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5))
28+
>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1122, 17))
29+
>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1120, 5))
3030
>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6))
31-
>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5))
32-
>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17))
31+
>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1120, 5))
32+
>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1122, 17))
3333

3434
console.log(JSON.stringify(result));
3535
>console.log(JSON.stringify(result)) : any

0 commit comments

Comments
 (0)