( store: Store<any>, tableId: Id, cellId: Id, cells: C[], )
| 21 | type AddMutator = (store: Store<any>) => void; |
| 22 | |
| 23 | const addAllowCellMutator = <C extends Cell<any, any, any>>( |
| 24 | store: Store<any>, |
| 25 | tableId: Id, |
| 26 | cellId: Id, |
| 27 | cells: C[], |
| 28 | ): Id => |
| 29 | store.addRowListener( |
| 30 | tableId, |
| 31 | null, |
| 32 | (store, tableId, rowId) => { |
| 33 | if (!cells.includes(store.getCell(tableId, rowId, cellId) as C)) { |
| 34 | store.delCell(tableId, rowId, cellId); |
| 35 | } |
| 36 | }, |
| 37 | true, |
| 38 | ); |
| 39 | |
| 40 | const addAllowValueMutator = <V extends Value<any, any, any>>( |
| 41 | store: Store<any>, |
no test coverage detected
searching dependent graphs…