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 { Cell, generateObject, wish } from "commonfabric"; const define = undefined; const runtimeDeps = undefined; const __cfAmdHooks = undefined; // FIXTURE: generic-helper-type-parameters-unknown // Verifies: generic definition-site helper wrappers degrade injected schemas to unknown // wish({ query }) → wish({ query }, { type: "unknown" }) // generateObject({ ... }) → generateObject({ ..., schema: { type: "unknown" } }) // new Cell(value) → new Cell(value, { type: "unknown" }) export function buildWishExplicit(path: string) { return wish({ query: path }, { type: "unknown" } as const satisfies __cfHelpers.JSONSchema); } __cfHardenFn(buildWishExplicit); export function buildObjectExplicit(prompt: string) { return generateObject({ model: "gpt-4o-mini", prompt, schema: { type: "unknown" } as const satisfies __cfHelpers.JSONSchema }); } __cfHardenFn(buildObjectExplicit); export function buildCellExplicit(value: T) { return new Cell(value, { type: "unknown" } as const satisfies __cfHelpers.JSONSchema); } __cfHardenFn(buildCellExplicit); // @ts-ignore: Internals function h(...args: any[]) { return __cfHelpers.h.apply(null, args); } __cfHardenFn(h);