Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bootstrap_typeahead: Make updater property optional in TypeaheadOptions.
afeefuddinaf0a31f0e49e
diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.tsindex 6c098f88434..0e15bb2d96d 100644--- a/web/src/bootstrap_typeahead.ts+++ b/web/src/bootstrap_typeahead.ts@@ -302,7 +302,8 @@ class Typeahead<ItemType extends string | object> {}}- defaultUpdater(item: ItemType): ItemType {+ defaultUpdater(item: ItemType): string {+ assert(typeof item === "string");return item;}@@ -713,7 +714,7 @@ type TypeaheadOptions<ItemType> = {stopAdvance?: boolean;tabIsEnter?: boolean;trigger_selection?: (event: JQuery.KeyDownEvent) => boolean;- updater: (+ updater?: (item: ItemType,query: string,input_element: TypeaheadInputElement,