|
7 | 7 | */ |
8 | 8 |
|
9 | 9 | declare var console: any; |
10 | | ->console : any, Symbol(console,Decl(APISample_transform.ts,7,11)) |
| 10 | +>console : any, Symbol(console, Decl(APISample_transform.ts, 7, 11)) |
11 | 11 |
|
12 | 12 | import * as ts from "typescript"; |
13 | | ->ts : typeof ts, Symbol(ts,Decl(APISample_transform.ts,9,6)) |
| 13 | +>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6)) |
14 | 14 |
|
15 | 15 | const source = "let x: string = 'string'"; |
16 | | ->source : string, Symbol(source,Decl(APISample_transform.ts,11,5)) |
| 16 | +>source : string, Symbol(source, Decl(APISample_transform.ts, 11, 5)) |
17 | 17 | >"let x: string = 'string'" : string |
18 | 18 |
|
19 | 19 | let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); |
20 | | ->result : string, Symbol(result,Decl(APISample_transform.ts,13,3)) |
| 20 | +>result : string, Symbol(result, Decl(APISample_transform.ts, 13, 3)) |
21 | 21 | >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)) |
23 | | ->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)) |
25 | | ->source : string, Symbol(source,Decl(APISample_transform.ts,11,5)) |
| 22 | +>ts.transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1729, 5)) |
| 23 | +>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)) |
| 25 | +>source : string, Symbol(source, Decl(APISample_transform.ts, 11, 5)) |
26 | 26 | >{ module: ts.ModuleKind.CommonJS } : { [x: string]: ts.ModuleKind; module: ts.ModuleKind; } |
27 | | ->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)) |
30 | | ->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)) |
| 27 | +>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)) |
| 30 | +>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)) |
33 | 33 |
|
34 | 34 | console.log(JSON.stringify(result)); |
35 | 35 | >console.log(JSON.stringify(result)) : any |
36 | 36 | >console.log : any |
37 | | ->console : any, Symbol(console,Decl(APISample_transform.ts,7,11)) |
| 37 | +>console : any, Symbol(console, Decl(APISample_transform.ts, 7, 11)) |
38 | 38 | >log : any |
39 | 39 | >JSON.stringify(result) : string |
40 | | ->JSON.stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify,Decl(lib.d.ts,964,70),Decl(lib.d.ts,969,34),Decl(lib.d.ts,975,78),Decl(lib.d.ts,981,51),Decl(lib.d.ts,988,90)) |
41 | | ->JSON : JSON, Symbol(JSON,Decl(lib.d.ts,955,42),Decl(lib.d.ts,1000,11)) |
42 | | ->stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify,Decl(lib.d.ts,964,70),Decl(lib.d.ts,969,34),Decl(lib.d.ts,975,78),Decl(lib.d.ts,981,51),Decl(lib.d.ts,988,90)) |
43 | | ->result : string, Symbol(result,Decl(APISample_transform.ts,13,3)) |
| 40 | +>JSON.stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify, Decl(lib.d.ts, 964, 70), Decl(lib.d.ts, 969, 34), Decl(lib.d.ts, 975, 78), Decl(lib.d.ts, 981, 51), Decl(lib.d.ts, 988, 90)) |
| 41 | +>JSON : JSON, Symbol(JSON, Decl(lib.d.ts, 955, 42), Decl(lib.d.ts, 1000, 11)) |
| 42 | +>stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify, Decl(lib.d.ts, 964, 70), Decl(lib.d.ts, 969, 34), Decl(lib.d.ts, 975, 78), Decl(lib.d.ts, 981, 51), Decl(lib.d.ts, 988, 90)) |
| 43 | +>result : string, Symbol(result, Decl(APISample_transform.ts, 13, 3)) |
44 | 44 |
|
0 commit comments