From f4dd1a58cd04210512abe922ca0b8b9efd2e7747 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Sat, 22 Apr 2023 19:28:00 +0300 Subject: [PATCH] fix: add getState method to grouped list typings --- src/component-interfaces/Virtuoso.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component-interfaces/Virtuoso.ts b/src/component-interfaces/Virtuoso.ts index 4f3b252c2..f1942ceab 100644 --- a/src/component-interfaces/Virtuoso.ts +++ b/src/component-interfaces/Virtuoso.ts @@ -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 }