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 { interface RowActionStore {
rows: RowStore["rows"] & { rows: RowStore["rows"] & {
actions: { actions: {
addRow: any addRow: (params: {
duplicateRow: any row: Row
bulkDuplicate: any idx: number
updateValue: any 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 applyRowChanges: any
deleteRows: any deleteRows: any
loadNextPage: any loadNextPage: any