mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
475 B
TypeScript
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 {};
|