Merging with main

This commit is contained in:
Keith Stevens
2023-01-11 08:47:16 +09:00
41 changed files with 457 additions and 515 deletions
+4
View File
@@ -12,6 +12,10 @@ export const enum TaskType {
label_assistant_reply = "label_assistant_reply",
}
// we need to reconsider how to handle task content types
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type TaskContent = any;
export interface ValidLabel {
name: string;
display_text: string;
+10
View File
@@ -0,0 +1,10 @@
export interface TaskReplyValid<T> {
content: T;
state: "VALID";
}
export interface TaskReplyDefault<T> {
content: T;
state: "DEFAULT";
}
export type TaskReplyState<T> = TaskReplyValid<T> | TaskReplyDefault<T>;