Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Should use union | symbol for TaskType combination

Tianzhou Chen67f0744e5f1f
diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.ts
index 0584a00d43..b04f1dabac 100644
--- a/frontend/src/types/bytebase.ts
+++ b/frontend/src/types/bytebase.ts
@@ -66,7 +66,7 @@ type TaskTypeGeneral = "bytebase.general.create";
type TaskTypeDataSource = "bytebase.datasource.create";
-export type TaskType = TaskTypeGeneral & TaskTypeDataSource;
+export type TaskType = TaskTypeGeneral | TaskTypeDataSource;
export type TaskStatus = "OPEN" | "DONE" | "CANCELED";