TypeScript/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types
2015-04-15 16:44:20 -07:00

21 lines
409 B
Plaintext

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