From d539bc3a88a400a41a1501c874adf3e7874edd22 Mon Sep 17 00:00:00 2001 From: "Xunnamius (Romulus)" Date: Thu, 26 Aug 2021 15:53:09 -0700 Subject: [PATCH] chore(types): merge-in with earlier stuff --- types/global.d.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/types/global.d.ts b/types/global.d.ts index be7f78d..5056018 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -14,6 +14,47 @@ export interface FriendRequestId extends MemeId {} // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface UnixEpochMs extends number {} +/** + * The shape of the options object accepted by the chats worker. + */ +export type ChatsWorkerOptions = { + debugNamespace: string; + user_id: string; + username: string; + startTimeMs: UnixEpochMs; +}; + +/** + * The shape of the options object accepted by the friends worker. + */ +export type FriendsWorkerOptions = { + debugNamespace: string; + user_id: string; + username: string; + startTimeMs: UnixEpochMs; +}; + +/** + * The shape of the options object accepted by the interactions worker. + */ +export type InteractionsWorkerOptions = { + debugNamespace: string; + user_id: string; + username: string; + friend_ids: string[]; + startTimeMs: UnixEpochMs; +}; + +/** + * The shape of the options object accepted by the memes worker. + */ +export type MemesWorkerOptions = { + debugNamespace: string; + user_id: string; + username: string; + startTimeMs: UnixEpochMs; +}; + /** * The shape of an imgur image upload response. * @see https://apidocs.imgur.com