Skip to content

Commit

Permalink
Merge pull request #232 from Team-Crops/feature/229-handle-cancel-ready
Browse files Browse the repository at this point in the history
메시지 형식에 `CANCEL_READY` 추가
  • Loading branch information
jaewoongs authored Jul 2, 2024
2 parents ba5a699 + f22e6b0 commit 370f613
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/types/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ import { User } from '.';

export interface Message {
id: number;
messageType: 'TEXT' | 'IMAGE' | 'NOTICE' | 'JOIN' | 'EXIT' | 'COMPLETE' | 'READY';
messageType:
| 'TEXT'
| 'IMAGE'
| 'NOTICE'
| 'JOIN'
| 'EXIT'
| 'COMPLETE'
| 'READY'
| 'CANCEL_READY';
createdAt: string;
userId?: User['id'];
content?: string;
Expand All @@ -25,7 +33,7 @@ export interface ImageMessage extends Message {
}

export interface NoticeMessage extends Message {
messageType: 'NOTICE' | 'JOIN' | 'EXIT' | 'COMPLETE' | 'READY';
messageType: 'NOTICE' | 'JOIN' | 'EXIT' | 'COMPLETE' | 'READY' | 'CANCEL_READY';
content: undefined;
imageUrl: undefined;
notice: string;
Expand Down

0 comments on commit 370f613

Please sign in to comment.