TypeScript/tests/baselines/reference/nodeModulesAllowJsPackageImports(module=nodenext).types

61 lines
950 B
Plaintext
Raw Permalink Normal View History

=== tests/cases/conformance/node/allowJs/index.js ===
// esm format file
import * as cjs from "#cjs";
>cjs : typeof cjs
import * as mjs from "#mjs";
>mjs : typeof mjs
import * as type from "#type";
>type : typeof type
cjs;
>cjs : typeof cjs
mjs;
>mjs : typeof mjs
type;
>type : typeof type
=== tests/cases/conformance/node/allowJs/index.mjs ===
// esm format file
import * as cjs from "#cjs";
>cjs : typeof cjs
import * as mjs from "#mjs";
>mjs : typeof mjs
import * as type from "#type";
>type : typeof type
cjs;
>cjs : typeof cjs
mjs;
>mjs : typeof mjs
type;
>type : typeof type
=== tests/cases/conformance/node/allowJs/index.cjs ===
// esm format file
import * as cjs from "#cjs";
>cjs : typeof cjs
import * as mjs from "#mjs";
>mjs : typeof mjs
import * as type from "#type";
>type : typeof type
cjs;
>cjs : typeof cjs
mjs;
>mjs : typeof mjs
type;
>type : typeof type