Files
tsgo/testdata/baselines/reference/submodule/compiler/importAssertionNonstring.js

18 lines
475 B
TypeScript

//// [tests/cases/compiler/importAssertionNonstring.ts] ////
//// [mod.mts]
import * as thing1 from "./mod.mjs" with {field: 0};
import * as thing2 from "./mod.mjs" with {field: `a`};
import * as thing3 from "./mod.mjs" with {field: /a/g};
import * as thing4 from "./mod.mjs" with {field: ["a"]};
import * as thing5 from "./mod.mjs" with {field: { a: 0 }};
import * as thing6 from "./mod.mjs" with {type: "json", field: 0..toString()}
//// [mod.mjs]
export {};