mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
42 lines
647 B
TypeScript
42 lines
647 B
TypeScript
//// [tests/cases/conformance/importAttributes/importAttributes10.ts] ////
|
|
|
|
//// [a.json]
|
|
{ "key": "value" }
|
|
|
|
//// [b.ts]
|
|
declare global {
|
|
interface ImportAttributes {
|
|
type: "json"
|
|
}
|
|
}
|
|
|
|
export type Test1 = typeof import("./a.json", {
|
|
with: {
|
|
type: "json"
|
|
},
|
|
});
|
|
|
|
export type Test2 = typeof import("./a.json", {
|
|
with: {
|
|
type: "json",
|
|
}
|
|
});
|
|
|
|
export type Test3 = typeof import("./a.json", {
|
|
with: {
|
|
type: "json"
|
|
},,
|
|
});
|
|
|
|
export type Test4 = typeof import("./a.json", {
|
|
with: {
|
|
type: "json",,
|
|
}
|
|
});
|
|
|
|
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
;
|