TypeScript/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types
2014-08-15 14:37:48 -07:00

21 lines
481 B
Plaintext

=== tests/cases/compiler/consumer.ts ===
import host = require("host");
>host : typeof "tests/cases/compiler/host"
var hostVar = host;
>hostVar : typeof "tests/cases/compiler/host"
>host : typeof "tests/cases/compiler/host"
var v = new hostVar.Host();
>v : Host
>new hostVar.Host() : Host
>hostVar.Host : typeof Host
>hostVar : typeof "tests/cases/compiler/host"
>Host : typeof Host
=== tests/cases/compiler/host.ts ===
export class Host { }
>Host : Host