Type action store

This commit is contained in:
Adria Navarro 2024-12-27 18:19:16 +01:00
parent 911fb59d5d
commit c4935ef60a
1 changed files with 17 additions and 4 deletions

View File

@ -38,10 +38,23 @@ interface RowDerivedStore {
interface RowActionStore {
rows: RowStore["rows"] & {
actions: {
addRow: any
duplicateRow: any
bulkDuplicate: any
updateValue: any
addRow: (params: {
row: Row
idx: number
bubble: boolean
notify: boolean
}) => Promise<UIRow | undefined>
duplicateRow: (row: UIRow) => Promise<UIRow | undefined>
bulkDuplicate: (
rowsToDupe: UIRow[],
progressCallback: (any: number) => void
) => Promise<UIRow[]>
updateValue: (params: {
rowId: string
column: any
value: any
apply: boolean
}) => Promise<void>
applyRowChanges: any
deleteRows: any
loadNextPage: any