diff --git a/packages/frontend-core/src/components/grid/stores/rows.ts b/packages/frontend-core/src/components/grid/stores/rows.ts index 7e37afadf8..0651435a7e 100644 --- a/packages/frontend-core/src/components/grid/stores/rows.ts +++ b/packages/frontend-core/src/components/grid/stores/rows.ts @@ -47,17 +47,17 @@ interface RowActionStore { duplicateRow: (row: UIRow) => Promise bulkDuplicate: ( rowsToDupe: UIRow[], - progressCallback: (any: number) => void + progressCallback: (progressPercentage: number) => void ) => Promise updateValue: (params: { rowId: string - column: any + column: string value: any apply: boolean }) => Promise applyRowChanges: (params: { rowId: string - changes?: any + changes?: Record updateState?: boolean handleErrors?: boolean }) => Promise @@ -68,8 +68,8 @@ interface RowActionStore { refreshData: () => void cleanRow: (row: UIRow) => Row bulkUpdate: ( - changeMap: Record, - progressCallback: (any: number) => void + changeMap: Record>, + progressCallback: (progressPercentage: number) => void ) => Promise } } @@ -413,7 +413,7 @@ export const createActions = (context: StoreContext): RowActionStore => { // Duplicates multiple rows, inserting them after the last source row const bulkDuplicate = async ( rowsToDupe: UIRow[], - progressCallback: (any: number) => void + progressCallback: (progressPercentage: number) => void ) => { // Find index of last row const $rowLookupMap = get(rowLookupMap) @@ -557,7 +557,7 @@ export const createActions = (context: StoreContext): RowActionStore => { handleErrors = true, }: { rowId: string - changes?: any + changes?: Record | null updateState?: boolean handleErrors?: boolean }) => { @@ -627,7 +627,7 @@ export const createActions = (context: StoreContext): RowActionStore => { apply = true, }: { rowId: string - column: any + column: string value: any apply: boolean }) => { @@ -638,8 +638,8 @@ export const createActions = (context: StoreContext): RowActionStore => { } const bulkUpdate = async ( - changeMap: Record, - progressCallback: (any: number) => void + changeMap: Record>, + progressCallback: (progressPercentage: number) => void ) => { const rowIds = Object.keys(changeMap || {}) const count = rowIds.length