23 lines
715 B
Plaintext
23 lines
715 B
Plaintext
|
=== tests/cases/conformance/node/subfolder/index.ts ===
|
||
|
// cjs format file
|
||
|
export async function main() {
|
||
|
>main : Symbol(main, Decl(index.ts, 0, 0))
|
||
|
|
||
|
const { readFile } = await import("fs");
|
||
|
>readFile : Symbol(readFile, Decl(index.ts, 2, 11))
|
||
|
>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0))
|
||
|
}
|
||
|
=== tests/cases/conformance/node/index.ts ===
|
||
|
// esm format file
|
||
|
export async function main() {
|
||
|
>main : Symbol(main, Decl(index.ts, 0, 0))
|
||
|
|
||
|
const { readFile } = await import("fs");
|
||
|
>readFile : Symbol(readFile, Decl(index.ts, 2, 11))
|
||
|
>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0))
|
||
|
}
|
||
|
=== tests/cases/conformance/node/types.d.ts ===
|
||
|
declare module "fs";
|
||
|
>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0))
|
||
|
|