mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-15 04:50:40 +08:00
8 lines
346 B
TypeScript
8 lines
346 B
TypeScript
/* A JSON document whose shape doesn't bake: a null-valued field has no
|
|
* standalone STATIC type, so the import reports the dynamic-family type
|
|
* diagnostic (SC2011 at the import site — the shape maps in the embedded
|
|
* engine) and uses of the binding poison. */
|
|
import bad from "./nulled.json" with { type: "json" };
|
|
|
|
console.log(bad.name);
|