feat: comment to test run's case (#390)
This commit is contained in:
32
frontend/types/comment.ts
Normal file
32
frontend/types/comment.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
type CommentType = {
|
||||
id: number;
|
||||
commentableType: 'RunCase' | 'Run' | 'Case';
|
||||
commentableId: number;
|
||||
userId: number;
|
||||
content: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
User: {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
};
|
||||
};
|
||||
|
||||
type CommentMessages = {
|
||||
comments: string;
|
||||
noComments: string;
|
||||
addComment: string;
|
||||
save: string;
|
||||
cancel: string;
|
||||
placeholder: string;
|
||||
notIncludedInRun: string;
|
||||
commentAdded: string;
|
||||
failedToAddComment: string;
|
||||
commentUpdated: string;
|
||||
failedToUpdateComment: string;
|
||||
commentDeleted: string;
|
||||
failedToDeleteComment: string;
|
||||
};
|
||||
|
||||
export type { CommentType, CommentMessages };
|
||||
Reference in New Issue
Block a user