File: pathMappingBasedModuleResolution3_classic.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (2)
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
=== c:/root/folder1/file1.ts ===

// baseUrl set via command line

import {x} from "folder2/file2"
>x : number

declare function use(a: any): void;
>use : (a: any) => void
>a : any

use(x.toExponential());
>use(x.toExponential()) : void
>use : (a: any) => void
>x.toExponential() : string
>x.toExponential : (fractionDigits?: number) => string
>x : number
>toExponential : (fractionDigits?: number) => string

=== c:/root/folder2/file2.ts ===
import {x as a} from "./file3"  // found with baseurl
>x : number
>a : number

import {y as b} from "file4"    // found with fallback
>y : number
>b : number

export var x = a + b;
>x : number
>a + b : number
>a : number
>b : number

=== c:/root/folder2/file3.ts ===
export var x = 1;
>x : number
>1 : 1

=== c:/file4.ts ===
export var y = 100;
>y : number
>100 : 100