mirror of https://github.com/zulip/zulip.git
19 lines
348 B
Plaintext
19 lines
348 B
Plaintext
/**
|
|
* @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 update(
|
|
worker: Worker,
|
|
new_recipient: RecipientUserIds | null
|
|
): void;
|