mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
a7cb03e120
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
51 lines
1004 B
Plaintext
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",,
|
|
}
|
|
});
|
|
|