function __cfHardenFn(fn: Function) { Object.freeze(fn); const prototype = fn.prototype; if (prototype && typeof prototype === "object") { Object.freeze(prototype); } return fn; } import { __cfHelpers } from "commonfabric"; import { computed, pattern, UI } from "commonfabric"; const define = undefined; const runtimeDeps = undefined; const __cfAmdHooks = undefined; const __cfLift_1 = __cfHelpers.lift<{ count: number; }, __cfHelpers.JSXElement>(({ count }) => {count}, { type: "object", properties: { count: { type: "number" } }, required: ["count"] } as const satisfies __cfHelpers.JSONSchema, { anyOf: [{ $ref: "https://commonfabric.org/schemas/vnode.json" }, { $ref: "#/$defs/UIRenderable" }, { type: "object", properties: {} }], $defs: { UIRenderable: { type: "object", properties: { $UI: { $ref: "https://commonfabric.org/schemas/vnode.json" } }, required: ["$UI"] } } } as const satisfies __cfHelpers.JSONSchema); // FIXTURE: lift-result-type-cf-ref-normalized // Verifies: a synthesized lift's RESULT type argument that is a commonfabric // type (here JSXElement, the type of the returned JSX) is emitted as the // canonical __cfHelpers.JSXElement form, NOT the inline TS import-type form // the printer produces by default. // // Regression guard for the bug where lift result-type construction bypassed the // qualifyCommonFabricTypeRefs normalizer. The companion invariant test // (test/no-import-type-in-output.test.ts) guards every path globally; this // fixture pins the specific JSX-returning-computed shape with a legible, // minimal diff so a regression is obvious here too. export default pattern((__cf_pattern_input) => { const count = __cf_pattern_input.key("count"); return { [UI]: