From 87b722d6fe216743af5dd2962c3a0c4fbf379472 Mon Sep 17 00:00:00 2001 From: 0-don Date: Sat, 24 Aug 2024 17:41:56 +0200 Subject: [PATCH] easy --- package.json | 14 +++++++------- src/utils/base.ts | 13 +------------ tsconfig.json | 2 +- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 3b799cf..3181d29 100644 --- a/package.json +++ b/package.json @@ -13,20 +13,20 @@ "dependencies": { "@elysiajs/eden": "^1.1.2", "@prisma/client": "^5.18.0", - "@tanstack/react-query": "^5.51.23", - "elysia": "^1.1.6", - "jose": "^5.6.3", - "next": "14.2.5", + "@tanstack/react-query": "^5.52.1", + "elysia": "^1.1.7", + "jose": "^5.7.0", + "next": "14.2.6", "react": "^18", "react-dom": "^18" }, "devDependencies": { - "@types/bun": "^1.1.6", - "@types/node": "^22.4.0", + "@types/bun": "^1.1.7", + "@types/node": "^22.5.0", "@types/react": "^18", "@types/react-dom": "^18", "eslint": "^8", - "eslint-config-next": "14.2.5", + "eslint-config-next": "14.2.6", "postcss": "^8", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.6", diff --git a/src/utils/base.ts b/src/utils/base.ts index 2db72c9..0dc27cc 100644 --- a/src/utils/base.ts +++ b/src/utils/base.ts @@ -1,3 +1,4 @@ +import type { EdenFetchError } from "@elysiajs/eden/dist/errors"; import { Errors } from "@sinclair/typebox/errors"; import type { Static, TSchema } from "@sinclair/typebox/type"; import { Check } from "@sinclair/typebox/value"; @@ -40,15 +41,3 @@ export function handleEden( if (response.error) throw response.error; return response.data; } - -/** - * Represents an error that occurs during an Eden fetch operation. - */ -export declare class EdenFetchError< - Status extends number = number, - Value = unknown, -> extends Error { - status: Status; - value: Value; - constructor(status: Status, value: Value); -} diff --git a/tsconfig.json b/tsconfig.json index 7b28589..9e8c5da 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "bundler", + "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve",