Add proper error type & error handling

This commit is contained in:
Zoe Roux
2024-12-08 22:23:49 +01:00
parent c8c6cccf6a
commit cdceb1a734
5 changed files with 56 additions and 7 deletions
+8
View File
@@ -0,0 +1,8 @@
import { t } from "elysia";
export const KError = t.Object({
status: t.Integer(),
message: t.String(),
details: t.Any(),
});
export type KError = typeof KError.static;