mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
//// [tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeDeclarationEmit7.ts] ////
|
|
|
|
=== /index.ts ===
|
|
// only an esm file can `import` both kinds of files
|
|
import obj1 from "./sub1/uses.js"
|
|
>obj1 : Symbol(obj1, Decl(index.ts, 1, 6))
|
|
|
|
import obj2 from "./sub2/uses.js"
|
|
>obj2 : Symbol(obj2, Decl(index.ts, 2, 6))
|
|
|
|
export default [obj1, obj2.default] as const;
|
|
>obj1 : Symbol(obj1, Decl(index.ts, 1, 6))
|
|
>obj2.default : Symbol(obj2.default, Decl(uses.ts, 0, 0))
|
|
>obj2 : Symbol(obj2, Decl(index.ts, 2, 6))
|
|
>default : Symbol(obj2.default, Decl(uses.ts, 0, 0))
|
|
>const : Symbol(const)
|
|
|
|
=== /node_modules/pkg/import.d.ts ===
|
|
export {};
|
|
declare global {
|
|
>global : Symbol(global, Decl(import.d.ts, 0, 10))
|
|
|
|
interface ImportInterface { _i: any; }
|
|
>ImportInterface : Symbol(ImportInterface, Decl(import.d.ts, 1, 16))
|
|
>_i : Symbol(ImportInterface._i, Decl(import.d.ts, 2, 31))
|
|
|
|
function getInterI(): ImportInterface;
|
|
>getInterI : Symbol(getInterI, Decl(import.d.ts, 2, 42))
|
|
>ImportInterface : Symbol(ImportInterface, Decl(import.d.ts, 1, 16))
|
|
}
|
|
=== /node_modules/pkg/require.d.ts ===
|
|
export {};
|
|
declare global {
|
|
>global : Symbol(global, Decl(require.d.ts, 0, 10))
|
|
|
|
interface RequireInterface { _r: any; }
|
|
>RequireInterface : Symbol(RequireInterface, Decl(require.d.ts, 1, 16))
|
|
>_r : Symbol(RequireInterface._r, Decl(require.d.ts, 2, 32))
|
|
|
|
function getInterR(): RequireInterface;
|
|
>getInterR : Symbol(getInterR, Decl(require.d.ts, 2, 43))
|
|
>RequireInterface : Symbol(RequireInterface, Decl(require.d.ts, 1, 16))
|
|
}
|
|
=== /sub1/uses.ts ===
|
|
/// <reference types="pkg" preserve="true" />
|
|
export default getInterI();
|
|
>getInterI : Symbol(getInterI, Decl(import.d.ts, 2, 42))
|
|
|
|
=== /sub2/uses.ts ===
|
|
/// <reference types="pkg" preserve="true" />
|
|
export default getInterR();
|
|
>getInterR : Symbol(getInterR, Decl(require.d.ts, 2, 43))
|
|
|