Skip to content

Commit

Permalink
add string union to message.type
Browse files Browse the repository at this point in the history
  • Loading branch information
nhannah committed Mar 31, 2021
1 parent 04e055d commit 7897e23
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export type MessageResponse<
silent?: boolean;
status?: string;
thread_participants?: UserResponse<UserType>[];
type?: string;
type?: MessageLabel;
updated_at?: string;
};

Expand Down Expand Up @@ -1676,6 +1676,14 @@ export type MessageBase<
user_id?: string;
};

export type MessageLabel =
| 'deleted'
| 'ephemeral'
| 'error'
| 'regular'
| 'reply'
| 'system';

export type Mute<UserType = UnknownType> = {
created_at: string;
target: UserResponse<UserType>;
Expand Down

0 comments on commit 7897e23

Please sign in to comment.