-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
Copy pathmoduleResolution.symbols
36 lines (29 loc) · 1.08 KB
/
moduleResolution.symbols
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
=== tests/cases/compiler/a.ts ===
export default 0;
No type information for this code.
No type information for this code.// No extension: '.ts' added
No type information for this code.=== tests/cases/compiler/b.ts ===
import a from './a';
>a : Symbol(a, Decl(b.ts, 0, 6))
// Matching extension
=== tests/cases/compiler/c.ts ===
import a from './a.ts';
>a : Symbol(a, Decl(c.ts, 0, 6))
// '.js' extension: stripped and replaced with '.ts'
=== tests/cases/compiler/d.ts ===
import a from './a.js';
>a : Symbol(a, Decl(d.ts, 0, 6))
=== tests/cases/compiler/jquery.d.ts ===
declare var x: number;
>x : Symbol(x, Decl(jquery.d.ts, 0, 11))
export default x;
>x : Symbol(x, Decl(jquery.d.ts, 0, 11))
// No extension: '.d.ts' added
=== tests/cases/compiler/jquery_user_1.ts ===
import j from "./jquery";
>j : Symbol(j, Decl(jquery_user_1.ts, 0, 6))
// '.js' extension: stripped and replaced with '.d.ts'
=== tests/cases/compiler/jquery_user_1.ts ===
import j from "./jquery.js"
>j : Symbol(j, Decl(jquery_user_1.ts, 0, 6))
>j : Symbol(j, Decl(jquery_user_1.ts, 0, 6))