import { Cell, OpaqueCell, Stream } from "commonfabric"; // FIXTURE: cell-static-factories // Verifies: static cell factories inject schemas from explicit, inferred, and contextual types // new Cell("hello") → new Cell("hello", { type: "string" }) // new Cell(123) → new Cell(123, { type: "number" }) // const cell: Cell = Cell.for("cause") → Cell.for("cause").asSchema({ type: "number" }) // new OpaqueCell(true) / new Stream(1) also receive injected schemas export default function TestCellStaticFactories() { const explicitString = new Cell("hello"); const inferredNumber = new Cell(123); const explicitCause = Cell.for("cause"); const contextualCause: Cell = Cell.for("cause"); const opaque = new OpaqueCell(true); const stream = new Stream(1); return { explicitString, inferredNumber, explicitCause, contextualCause, opaque, stream, }; }