File: pathMappingBasedModuleResolution3_node.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (38 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download | duplicates (5)
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
=== c:/root/folder1/file1.ts ===
// baseUrl set via command line

import {x} from "folder2/file2"
>x : Symbol(x, Decl(file1.ts, 2, 8))

declare function use(a: any): void;
>use : Symbol(use, Decl(file1.ts, 2, 31))
>a : Symbol(a, Decl(file1.ts, 3, 21))

use(x.toExponential());
>use : Symbol(use, Decl(file1.ts, 2, 31))
>x.toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))
>x : Symbol(x, Decl(file1.ts, 2, 8))
>toExponential : Symbol(Number.toExponential, Decl(lib.es5.d.ts, --, --))

=== c:/root/folder2/file2.ts ===
import {x as a} from "./file3"  // found with baseurl
>x : Symbol(a, Decl(file3.ts, 0, 10))
>a : Symbol(a, Decl(file2.ts, 0, 8))

import {y as b} from "file4"    // found with fallback
>y : Symbol(b, Decl(index.d.ts, 0, 10))
>b : Symbol(b, Decl(file2.ts, 1, 8))

export var x = a + b;
>x : Symbol(x, Decl(file2.ts, 2, 10))
>a : Symbol(a, Decl(file2.ts, 0, 8))
>b : Symbol(b, Decl(file2.ts, 1, 8))

=== c:/root/folder2/file3.ts ===
export var x = 1;
>x : Symbol(x, Decl(file3.ts, 0, 10))

=== c:/node_modules/file4/index.d.ts ===
export var y: number;
>y : Symbol(y, Decl(index.d.ts, 0, 10))