diff --git a/package.json b/package.json index ccab0900c..8780e822d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ ], "dependencies": { "@sentry/cli": "^2.37.0", - "@sinclair/typebox": "^0.33.18", "dotenv": "^16.4.5", "eslint-plugin-react": "^7.37.1", "global": "4.4.0", diff --git a/shared/package.json b/shared/package.json index 85155fdd7..f57229e1e 100644 --- a/shared/package.json +++ b/shared/package.json @@ -23,7 +23,6 @@ "zod-to-json-schema": "^3.23.3" }, "devDependencies": { - "@sinclair/typebox": "^0.33.18", "@tsconfig/node22": "^22.0.0", "@types/he": "^1.2.3", "@types/jest": "^29.5.1", diff --git a/shared/routes/types.ts b/shared/routes/types.ts index fd521b1b5..ed43a4332 100644 --- a/shared/routes/types.ts +++ b/shared/routes/types.ts @@ -1,15 +1,7 @@ -import type { TSchema } from "@sinclair/typebox"; import type { z } from "zod"; export type TMethod = "GET" | "HEAD" | "OPTIONS" | "TRACE" | "PUT" | "DELETE" | "POST" | "PATCH" | "CONNECT"; -export type SchemaTypeBox = { - params?: TSchema; - querystring?: TSchema; - body?: TSchema; - response: Record; -}; - export type SchemaZod = { params?: z.AnyZodObject; querystring?: z.AnyZodObject; @@ -20,7 +12,7 @@ export type SchemaZod = { export interface IRoute { url: string; method: TMethod; - schema: SchemaTypeBox | SchemaZod; + schema: SchemaZod; } export interface IRoutesDefinition { diff --git a/yarn.lock b/yarn.lock index 64b36b06a..6681661a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5097,13 +5097,6 @@ __metadata: languageName: node linkType: hard -"@sinclair/typebox@npm:^0.33.18": - version: 0.33.22 - resolution: "@sinclair/typebox@npm:0.33.22" - checksum: d87c623b2b853a2684edda8d8a9f842867a9e22d0120142b8c82d0c7fc97ac0e5d95027c2f14497ccce0bd101b706645d04acd602b04c0c706002f57f51302e3 - languageName: node - linkType: hard - "@sindresorhus/is@npm:^4.0.0, @sindresorhus/is@npm:^4.6.0": version: 4.6.0 resolution: "@sindresorhus/is@npm:4.6.0" @@ -18608,7 +18601,6 @@ __metadata: "@semantic-release/exec": 6.0.3 "@semantic-release/git": 10.0.1 "@sentry/cli": ^2.37.0 - "@sinclair/typebox": ^0.33.18 "@types/node": ^22.5.5 "@typescript-eslint/eslint-plugin": ^8.9.0 "@typescript-eslint/parser": ^8.9.0 @@ -21495,7 +21487,6 @@ __metadata: resolution: "shared@workspace:shared" dependencies: "@http-wizard/core": ^1.3.20 - "@sinclair/typebox": ^0.33.18 "@tsconfig/node22": ^22.0.0 "@types/he": ^1.2.3 "@types/jest": ^29.5.1