mirror of https://github.com/zulip/zulip.git
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:
parent
8ca83c4a96
commit
5178a6f2fe
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue