Moving the ValidLabel type

This commit is contained in:
Keith Stevens
2023-01-10 16:30:44 +09:00
parent 2c34b09f85
commit 9e14de2570
4 changed files with 9 additions and 8 deletions
+7
View File
@@ -12,6 +12,12 @@ export const enum TaskType {
label_assistant_reply = "label_assistant_reply",
}
export interface ValidLabel {
name: string;
display_text: string;
help_text: string;
}
export interface BaseTask {
id: string;
type: TaskType;
@@ -21,4 +27,5 @@ export interface TaskResponse<Task extends BaseTask> {
id: string;
userId: string;
task: Task;
valid_labels: ValidLabel[];
}