/// import { Cell, pattern, action } from "commontools"; interface BaseState { a: Cell; b: Cell; } // Partial should make both 'a' and 'b' optional in the schema type PartState = Partial; export default pattern(({ a, b }) => { return { readA: action(() => console.log(a)), readB: action(() => console.log(b)), }; });