Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

list_cursor: Update return type of find_li to allow undefined.

evykassirer5178a6f2fe93
diff --git a/web/src/list_cursor.ts b/web/src/list_cursor.ts
index 7fb678853ba..99373abc8bf 100644
--- a/web/src/list_cursor.ts
+++ b/web/src/list_cursor.ts
@@ -5,7 +5,7 @@ import * as scroll_util from "./scroll_util";
type List<Key> = {
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;
prev_key: (key: Key) => Key | undefined;
next_key: (key: Key) => Key | undefined;