import { Default, NAME, pattern, toSchema } from "commonfabric"; import "commonfabric/schema"; interface Input { selectedIndex: number | Default; threshold: number | Default; } const inputSchema = toSchema(); // FIXTURE: negative-number-default // Verifies: negative numeric defaults are emitted as unary minus expressions // (the TS factory rejects negative numbers in createNumericLiteral) export default pattern(({ selectedIndex, threshold }) => ({ [NAME]: "Negative defaults", selectedIndex, threshold, }), inputSchema);