///
import { Cell, pattern, action } from "commontools";
interface BaseState {
a?: Cell;
b: Cell;
}
// Required should make 'a' required in the schema
type ReqState = Required;
export default pattern(({ a, b }) => {
return {
setA: action(() => a.set("hello")),
setB: action(() => b.set(42)),
};
});