Skip to content

Commit 28a6416

Browse files
nuintunafc163
andauthored
fix: enhance scrollTo ts type (#91)
Co-authored-by: afc163 <[email protected]>
1 parent f1ddd82 commit 28a6416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface ScrollInfo {
3737

3838
export type ScrollConfig = ScrollTarget | ScrollPos;
3939

40-
export type ScrollTo = (arg: number | ScrollConfig) => void;
40+
export type ScrollTo = (arg?: number | ScrollConfig | null) => void;
4141

4242
export type ListRef = {
4343
nativeElement: HTMLDivElement;

0 commit comments

Comments
 (0)