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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
=== tests/cases/conformance/dynamicImport/test.ts ===
export async function fn() {
>fn : () => Promise<void>
const req = await import('./test') // ONE
>req : typeof import("tests/cases/conformance/dynamicImport/test")
>await import('./test') : typeof import("tests/cases/conformance/dynamicImport/test")
>import('./test') : Promise<typeof import("tests/cases/conformance/dynamicImport/test")>
>'./test' : "./test"
}
export class cl1 {
>cl1 : cl1
public async m() {
>m : () => Promise<void>
const req = await import('./test') // TWO
>req : typeof import("tests/cases/conformance/dynamicImport/test")
>await import('./test') : typeof import("tests/cases/conformance/dynamicImport/test")
>import('./test') : Promise<typeof import("tests/cases/conformance/dynamicImport/test")>
>'./test' : "./test"
}
}
export const obj = {
>obj : { m: () => Promise<void>; }
>{ m: async () => { const req = await import('./test') // THREE }} : { m: () => Promise<void>; }
m: async () => {
>m : () => Promise<void>
>async () => { const req = await import('./test') // THREE } : () => Promise<void>
const req = await import('./test') // THREE
>req : typeof import("tests/cases/conformance/dynamicImport/test")
>await import('./test') : typeof import("tests/cases/conformance/dynamicImport/test")
>import('./test') : Promise<typeof import("tests/cases/conformance/dynamicImport/test")>
>'./test' : "./test"
}
}
export class cl2 {
>cl2 : cl2
public p = {
>p : { m: () => Promise<void>; }
>{ m: async () => { const req = await import('./test') // FOUR } } : { m: () => Promise<void>; }
m: async () => {
>m : () => Promise<void>
>async () => { const req = await import('./test') // FOUR } : () => Promise<void>
const req = await import('./test') // FOUR
>req : typeof import("tests/cases/conformance/dynamicImport/test")
>await import('./test') : typeof import("tests/cases/conformance/dynamicImport/test")
>import('./test') : Promise<typeof import("tests/cases/conformance/dynamicImport/test")>
>'./test' : "./test"
}
}
}
export const l = async () => {
>l : () => Promise<void>
>async () => { const req = await import('./test') // FIVE} : () => Promise<void>
const req = await import('./test') // FIVE
>req : typeof import("tests/cases/conformance/dynamicImport/test")
>await import('./test') : typeof import("tests/cases/conformance/dynamicImport/test")
>import('./test') : Promise<typeof import("tests/cases/conformance/dynamicImport/test")>
>'./test' : "./test"
}
|