Skip to content

Commit

Permalink
fix: update initialTopMostItemIndex type in TableVirtuoso interface (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dizel852 committed May 24, 2024
1 parent 75738f5 commit 9a93e93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/component-interfaces/TableVirtuoso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
TableComponents,
StateSnapshot,
StateCallback,
IndexLocationWithAlign,
} from '../interfaces'
import type { VirtuosoProps } from './Virtuoso'

Expand Down Expand Up @@ -59,8 +60,9 @@ export interface TableVirtuosoProps<D, C> extends Omit<VirtuosoProps<D, C>, 'com

/**
* Set to a value between 0 and totalCount - 1 to make the list start scrolled to that item.
* Pass in an object to achieve additional effects similar to `scrollToIndex`.
*/
initialTopMostItemIndex?: number
initialTopMostItemIndex?: number | IndexLocationWithAlign

/**
* Set this value to offset the initial location of the list.
Expand Down

0 comments on commit 9a93e93

Please sign in to comment.