zulip/static/shared/js/typing_status.js.flow

21 lines
413 B
Plaintext
Raw Normal View History

/**
* @flow strict
*/
"use strict";
type RecipientUserIds = number[];
type Worker = {|
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: Worker,
new_recipient: RecipientUserIds | void,
): void;
declare export function stop(worker: Worker): void;