import * as __ctHelpers from "commontools"; import { Cell, handler } from "commontools"; interface Item { text: string; } interface ListState { items: Cell; } // Index signature will prevent safe merge type Indexed = { [k: string]: unknown; }; const removeItem = handler(true as const satisfies __ctHelpers.JSONSchema, { type: "object", additionalProperties: true, $comment: "Unsupported intersection pattern: index signature on constituent" } as const satisfies __ctHelpers.JSONSchema, (_, { items }) => { // noop items.get(); }); export { removeItem }; // @ts-ignore: Internals function h(...args: any[]) { return __ctHelpers.h.apply(null, args); } // @ts-ignore: Internals h.fragment = __ctHelpers.h.fragment;