Skip to content

Commit

Permalink
fix: add getState method to grouped list typings
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Apr 22, 2023
1 parent fd6c048 commit f4dd1a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/component-interfaces/Virtuoso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,9 @@ export interface GroupedVirtuosoHandle {
scrollTo(location: ScrollToOptions): void
scrollBy(location: ScrollToOptions): void
autoscrollToBottom(): void

/**
* Obtains the internal size state of the component, so that it can be restored later. This does not include the data items.
*/
getState(stateCb: StateCallback): void
}

0 comments on commit f4dd1a5

Please sign in to comment.