refactor(api): ♻️ Use OpenAPIHono instead of Hono in preparation for future changes

This commit is contained in:
Jesse Wierzbinski 2024-08-27 16:40:11 +02:00
parent 3c1b330d4b
commit df466ecaa0
No known key found for this signature in database
6 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
import type { Hono } from "@hono/hono";
import type { RouterRoute } from "@hono/hono/types";
import type { OpenAPIHono } from "@hono/zod-openapi";
import type {
Delete,
Follow,
@ -49,7 +49,7 @@ export interface ApiRouteExports {
query?: z.AnyZodObject;
body?: z.AnyZodObject;
};
default: (app: Hono) => RouterRoute;
default: (app: OpenAPIHono) => RouterRoute;
}
export type KnownEntity =