TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit3.ts
2017-06-05 17:16:29 -07:00

16 lines
391 B
TypeScript

// @module: esnext
// @target: esnext
// @declaration: true
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
declare function getPath(): string;
import * as Zero from "./0";
import("./0");
export var p0: Promise<typeof Zero> = import(getPath());
export var p1: Promise<typeof Zero> = import("./0");
export var p2: Promise<any> = import("./0");