Skip to content

Commit

Permalink
chore(types): merge-in with earlier stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Aug 26, 2021
1 parent 158e51c commit d539bc3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d539bc3

Please sign in to comment.