Type anys
This commit is contained in:
parent
aff3f01922
commit
63ed4fbf7c
|
@ -47,17 +47,17 @@ interface RowActionStore {
|
||||||
duplicateRow: (row: UIRow) => Promise<UIRow | undefined>
|
duplicateRow: (row: UIRow) => Promise<UIRow | undefined>
|
||||||
bulkDuplicate: (
|
bulkDuplicate: (
|
||||||
rowsToDupe: UIRow[],
|
rowsToDupe: UIRow[],
|
||||||
progressCallback: (any: number) => void
|
progressCallback: (progressPercentage: number) => void
|
||||||
) => Promise<UIRow[]>
|
) => Promise<UIRow[]>
|
||||||
updateValue: (params: {
|
updateValue: (params: {
|
||||||
rowId: string
|
rowId: string
|
||||||
column: any
|
column: string
|
||||||
value: any
|
value: any
|
||||||
apply: boolean
|
apply: boolean
|
||||||
}) => Promise<void>
|
}) => Promise<void>
|
||||||
applyRowChanges: (params: {
|
applyRowChanges: (params: {
|
||||||
rowId: string
|
rowId: string
|
||||||
changes?: any
|
changes?: Record<string, any>
|
||||||
updateState?: boolean
|
updateState?: boolean
|
||||||
handleErrors?: boolean
|
handleErrors?: boolean
|
||||||
}) => Promise<UIRow | undefined>
|
}) => Promise<UIRow | undefined>
|
||||||
|
@ -68,8 +68,8 @@ interface RowActionStore {
|
||||||
refreshData: () => void
|
refreshData: () => void
|
||||||
cleanRow: (row: UIRow) => Row
|
cleanRow: (row: UIRow) => Row
|
||||||
bulkUpdate: (
|
bulkUpdate: (
|
||||||
changeMap: Record<string, any>,
|
changeMap: Record<string, Record<string, any>>,
|
||||||
progressCallback: (any: number) => void
|
progressCallback: (progressPercentage: number) => void
|
||||||
) => Promise<void>
|
) => Promise<void>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -413,7 +413,7 @@ export const createActions = (context: StoreContext): RowActionStore => {
|
||||||
// Duplicates multiple rows, inserting them after the last source row
|
// Duplicates multiple rows, inserting them after the last source row
|
||||||
const bulkDuplicate = async (
|
const bulkDuplicate = async (
|
||||||
rowsToDupe: UIRow[],
|
rowsToDupe: UIRow[],
|
||||||
progressCallback: (any: number) => void
|
progressCallback: (progressPercentage: number) => void
|
||||||
) => {
|
) => {
|
||||||
// Find index of last row
|
// Find index of last row
|
||||||
const $rowLookupMap = get(rowLookupMap)
|
const $rowLookupMap = get(rowLookupMap)
|
||||||
|
@ -557,7 +557,7 @@ export const createActions = (context: StoreContext): RowActionStore => {
|
||||||
handleErrors = true,
|
handleErrors = true,
|
||||||
}: {
|
}: {
|
||||||
rowId: string
|
rowId: string
|
||||||
changes?: any
|
changes?: Record<string, any> | null
|
||||||
updateState?: boolean
|
updateState?: boolean
|
||||||
handleErrors?: boolean
|
handleErrors?: boolean
|
||||||
}) => {
|
}) => {
|
||||||
|
@ -627,7 +627,7 @@ export const createActions = (context: StoreContext): RowActionStore => {
|
||||||
apply = true,
|
apply = true,
|
||||||
}: {
|
}: {
|
||||||
rowId: string
|
rowId: string
|
||||||
column: any
|
column: string
|
||||||
value: any
|
value: any
|
||||||
apply: boolean
|
apply: boolean
|
||||||
}) => {
|
}) => {
|
||||||
|
@ -638,8 +638,8 @@ export const createActions = (context: StoreContext): RowActionStore => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const bulkUpdate = async (
|
const bulkUpdate = async (
|
||||||
changeMap: Record<string, any>,
|
changeMap: Record<string, Record<string, any>>,
|
||||||
progressCallback: (any: number) => void
|
progressCallback: (progressPercentage: number) => void
|
||||||
) => {
|
) => {
|
||||||
const rowIds = Object.keys(changeMap || {})
|
const rowIds = Object.keys(changeMap || {})
|
||||||
const count = rowIds.length
|
const count = rowIds.length
|
||||||
|
|
Loading…
Reference in New Issue