Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typing_status: Mark recipient array as allowing number subtypes.
Greg Price0de1d03dd4e3
diff --git a/static/shared/js/typing_status.js.flow b/static/shared/js/typing_status.js.flowindex 05838a72f9a..01a259a876b 100644--- a/static/shared/js/typing_status.js.flow+++ b/static/shared/js/typing_status.js.flow@@ -4,15 +4,15 @@"use strict";-type RecipientUserIds = $ReadOnlyArray<number>;+type RecipientUserIds<UserId: number> = $ReadOnlyArray<UserId>;-type Worker = {|+type Worker<UserId> = {|get_current_time: () => number, // as ms since epoch- notify_server_start: RecipientUserIds => void,- notify_server_stop: RecipientUserIds => void+ notify_server_start: RecipientUserIds<UserId> => void,+ notify_server_stop: RecipientUserIds<UserId> => void|};-declare export function update(- worker: Worker,- new_recipient: RecipientUserIds | null+declare export function update<UserId>(+ worker: Worker<UserId>,+ new_recipient: RecipientUserIds<UserId> | null): void;