Skip to content

Commit

Permalink
fix: retirer typebox
Browse files Browse the repository at this point in the history
  • Loading branch information
FaXaq committed Nov 27, 2024
1 parent 6af6c7e commit cc8cc52
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 1 addition & 9 deletions shared/routes/types.ts
Original file line number Diff line number Diff line change
@@ -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<number, TSchema>;
};

export type SchemaZod = {
params?: z.AnyZodObject;
querystring?: z.AnyZodObject;
Expand All @@ -20,7 +12,7 @@ export type SchemaZod = {
export interface IRoute {
url: string;
method: TMethod;
schema: SchemaTypeBox | SchemaZod;
schema: SchemaZod;
}

export interface IRoutesDefinition {
Expand Down
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc8cc52

Please sign in to comment.