File: importAliasAnExternalModuleInsideAnInternalModule.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 (29 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (7)
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
=== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file1.ts ===
import r = require('./importAliasAnExternalModuleInsideAnInternalModule_file0');
>r : typeof r

module m_private {
>m_private : typeof m_private

    //import r2 = require('m'); // would be error
    export import C = r; // no error
>C : typeof C
>r : typeof C

    C.m.foo();
>C.m.foo() : void
>C.m.foo : () => void
>C.m : typeof C.m
>C : typeof C
>m : typeof C.m
>foo : () => void
}

=== tests/cases/compiler/importAliasAnExternalModuleInsideAnInternalModule_file0.ts ===
export module m {
>m : typeof m

    export function foo() { }
>foo : () => void
}