Files
zulip/static/shared/js/typing_status.js.flow
Anders Kaseorg 57f2b8760a shared: Format our one Flow file with Prettier.
Why not.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-14 07:03:32 -05:00

19 lines
442 B
Plaintext

/**
* @flow strict
*/
"use strict";
type RecipientUserIds<UserId: number> = $ReadOnlyArray<UserId>;
type Worker<UserId> = {|
get_current_time: () => number, // as ms since epoch
notify_server_start: (RecipientUserIds<UserId>) => void,
notify_server_stop: (RecipientUserIds<UserId>) => void,
|};
declare export function update<UserId>(
worker: Worker<UserId>,
new_recipient: RecipientUserIds<UserId> | null,
): void;