import { PersistShard } from "../core/persist"; import { Shard } from "../core/shard"; export type ClusterMembers = { [Property in keyof Type]: Shard & Partial>; }; export type PrevFn = (v: Type) => Type; export type State = [Type, (v: Type | PrevFn) => void]; export type ReturnClusterMembers = { [Property in keyof Type]: () => State; };