upgrade to next 15 (#151)

This commit is contained in:
KM Koushik
2025-05-02 20:49:37 +10:00
committed by GitHub
parent 6dc6b4d213
commit d2587aed0d
28 changed files with 6814 additions and 8889 deletions

View File

@@ -1,6 +1,6 @@
import { Context } from "hono";
import { HTTPException } from "hono/http-exception";
import { StatusCode } from "hono/utils/http-status";
import { StatusCode, ContentfulStatusCode } from "hono/utils/http-status";
import { z } from "zod";
const ErrorCode = z.enum([
@@ -14,7 +14,7 @@ const ErrorCode = z.enum([
"METHOD_NOT_ALLOWED",
]);
function codeToStatus(code: z.infer<typeof ErrorCode>): StatusCode {
function codeToStatus(code: z.infer<typeof ErrorCode>): ContentfulStatusCode {
switch (code) {
case "BAD_REQUEST":
return 400;