Files
tsgo/testdata/baselines/reference/submodule/conformance/importAttributes10.symbols
a7cb03e120 Fix resolveJsonModule default for nodenext module (#2657)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-02-03 18:42:34 +00:00

51 lines
1004 B
Plaintext

//// [tests/cases/conformance/importAttributes/importAttributes10.ts] ////
=== a.json ===
{ "key": "value" }
>"key" : Symbol("key", Decl(a.json, 0, 1))
=== b.ts ===
declare global {
>global : Symbol(global, Decl(b.ts, 0, 0))
interface ImportAttributes {
>ImportAttributes : Symbol(ImportAttributes, Decl(lib.es5.d.ts, --, --), Decl(b.ts, 0, 16))
type: "json"
>type : Symbol(ImportAttributes.type, Decl(b.ts, 1, 32))
}
}
export type Test1 = typeof import("./a.json", {
>Test1 : Symbol(Test1, Decl(b.ts, 4, 1))
with: {
type: "json"
},
});
export type Test2 = typeof import("./a.json", {
>Test2 : Symbol(Test2, Decl(b.ts, 10, 3))
with: {
type: "json",
}
});
export type Test3 = typeof import("./a.json", {
>Test3 : Symbol(Test3, Decl(b.ts, 16, 3))
with: {
type: "json"
},,
});
export type Test4 = typeof import("./a.json", {
>Test4 : Symbol(Test4, Decl(b.ts, 22, 3))
with: {
type: "json",,
}
});