Files
zulip/static/shared/js/typing_status.js.flow
Greg Price b70b7df22c shared: Describe interface of typing_status in Flow.
This allows the mobile app to stay well-typed while using this code.
2019-10-17 16:48:23 -07:00

20 lines
461 B
Plaintext

/**
* @flow strict
*/
"use strict";
type RecipientUserIds = number[];
type Worker = {|
get_recipient: () => RecipientUserIds | void,
is_valid_conversation: (RecipientUserIds | void) => boolean,
get_current_time: () => number, // as ms since epoch
notify_server_start: RecipientUserIds => void,
notify_server_stop: RecipientUserIds => void
|};
declare export function handle_text_input(Worker): void;
declare export function stop(Worker): void;