fix: non-empty text before submitting on create task

This commit is contained in:
James Melvin
2023-01-13 18:58:42 +05:30
parent 5d1b03b02d
commit 0979b4300a
3 changed files with 17 additions and 4 deletions
+5 -1
View File
@@ -6,5 +6,9 @@ export interface TaskReplyDefault<T> {
content: T;
state: "DEFAULT";
}
export interface TaskReplyInValid<T> {
content: T;
state: "INVALID";
}
export type TaskReplyState<T> = TaskReplyValid<T> | TaskReplyDefault<T>;
export type TaskReplyState<T> = TaskReplyValid<T> | TaskReplyDefault<T> | TaskReplyInValid<T>;