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
|
=== tests/cases/conformance/node/allowJs/subfolder/index.js ===
// cjs format file
export async function main() {
>main : () => Promise<void>
const { readFile } = await import("fs");
>readFile : any
>await import("fs") : any
>import("fs") : Promise<any>
>"fs" : "fs"
}
=== tests/cases/conformance/node/allowJs/index.js ===
// esm format file
export async function main() {
>main : () => Promise<void>
const { readFile } = await import("fs");
>readFile : any
>await import("fs") : any
>import("fs") : Promise<any>
>"fs" : "fs"
}
=== tests/cases/conformance/node/allowJs/types.d.ts ===
declare module "fs";
>"fs" : any
|