17 lines
474 B
TypeScript
17 lines
474 B
TypeScript
// @module: commonjs
|
|
// @target: es6
|
|
// @noImplicitAny: true
|
|
|
|
// @filename: anotherModule.ts
|
|
export class D{}
|
|
|
|
// @filename: defaultPath.ts
|
|
export class C {}
|
|
|
|
// @filename: 1.ts
|
|
import * as defaultModule from "./defaultPath";
|
|
import * as anotherModule from "./anotherModule";
|
|
|
|
let p1: Promise<typeof anotherModule> = import("./defaultPath");
|
|
let p2 = import("./defaultPath") as Promise<typeof anotherModule>;
|
|
let p3: Promise<any> = import("./defaultPath");
|