mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Fix types of getRowID & getSubRows (#1651)
Closes: https://github.com/tannerlinsley/react-table/issues/1628
This commit is contained in:
parent
2ecdfbd24e
commit
e924b80709
5
index.d.ts
vendored
5
index.d.ts
vendored
@ -60,8 +60,8 @@ export type UseTableOptions<D extends object> = {
|
|||||||
) => TableState<D>
|
) => TableState<D>
|
||||||
defaultColumn: Partial<Column<D>>
|
defaultColumn: Partial<Column<D>>
|
||||||
initialRowStateKey: IdType<D>
|
initialRowStateKey: IdType<D>
|
||||||
getSubRows: (row: Row<D>, relativeIndex: number) => Array<Row<D>>
|
getSubRows: (originalRow: D, relativeIndex: number) => Array<D>
|
||||||
getRowID: (row: Row<D>, relativeIndex: number) => string
|
getRowID: (originalRow: D, relativeIndex: number) => IdType<D>
|
||||||
debug: boolean
|
debug: boolean
|
||||||
}>
|
}>
|
||||||
|
|
||||||
@ -210,7 +210,6 @@ export namespace useExpanded {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type UseExpandedOptions<D extends object> = Partial<{
|
export type UseExpandedOptions<D extends object> = Partial<{
|
||||||
getSubRows: (row: Row<D>, relativeIndex: number) => Array<Row<D>>
|
|
||||||
manualExpandedKey: IdType<D>
|
manualExpandedKey: IdType<D>
|
||||||
paginateExpandedRows: boolean
|
paginateExpandedRows: boolean
|
||||||
getResetExpandedDeps: (i: TableInstance) => Array<any>
|
getResetExpandedDeps: (i: TableInstance) => Array<any>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user