mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
472 B
Plaintext
18 lines
472 B
Plaintext
//// [tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride2.ts] ////
|
|
|
|
=== /index.ts ===
|
|
/// <reference types="pkg" />
|
|
foo; // foo should resolve while bar should not, since index.js is esm
|
|
>foo : Symbol(foo, Decl(import.d.ts, 2, 7))
|
|
|
|
bar;
|
|
export {};
|
|
=== /node_modules/pkg/import.d.ts ===
|
|
export {};
|
|
declare global {
|
|
>global : Symbol(global, Decl(import.d.ts, 0, 10))
|
|
|
|
var foo: number;
|
|
>foo : Symbol(foo, Decl(import.d.ts, 2, 7))
|
|
}
|