Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Delete workspace type file

seunghyunOh9e73b3431ee3
diff --git a/frontend/pages/api/workspace/getWorkspaces.ts b/frontend/pages/api/workspace/getWorkspaces.ts
index 619041fdeb..33292b6eec 100644
--- a/frontend/pages/api/workspace/getWorkspaces.ts
+++ b/frontend/pages/api/workspace/getWorkspaces.ts
@@ -1,7 +1,13 @@
-import { Workspaces } from "types/workspaces";
-
import SecurityClient from "~/utilities/SecurityClient";
+interface Workspaces {
+ __v: number;
+ _id: string;
+ name: string;
+ organization: string;
+}
+[];
+
/**
* This route lets us get the workspaces of a certain user
* @returns
diff --git a/frontend/types/workspaces.d.ts b/frontend/types/workspaces.d.ts
deleted file mode 100644
index 7b6fab001c..0000000000
--- a/frontend/types/workspaces.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export interface WorkSpace {
- __v: number;
- _id: string;
- name: string;
- organization: string;
-}
-
-type Workspaces = WorkSpace[];