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