list_cursor: Update return type of find_li to allow undefined.

This reflects how the function is used in
`stream_list.initialize_stream_cursor`, and is already
handled appropriately in `ListCursor.get_row`.
This commit is contained in:
evykassirer 2024-02-20 17:15:23 -08:00 committed by Tim Abbott
parent 8ca83c4a96
commit 5178a6f2fe
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import * as scroll_util from "./scroll_util";
type List<Key> = { type List<Key> = {
scroll_container_selector: string; scroll_container_selector: string;
find_li: (opts: {key: Key; force_render: boolean}) => JQuery; find_li: (opts: {key: Key; force_render: boolean}) => JQuery | undefined;
first_key: () => Key | undefined; first_key: () => Key | undefined;
prev_key: (key: Key) => Key | undefined; prev_key: (key: Key) => Key | undefined;
next_key: (key: Key) => Key | undefined; next_key: (key: Key) => Key | undefined;