refactor(api): ♻️ Upgrade zod-openapi to 0.18.3

Needed to add "as const" to all middleware handlers :)
This commit is contained in:
Jesse Wierzbinski 2024-12-30 18:20:22 +01:00
parent fbfd237f27
commit 621dd7e9d9
No known key found for this signature in database
74 changed files with 86 additions and 86 deletions

View file

@ -22,7 +22,7 @@ export class Plugin<ConfigSchema extends z.ZodTypeAny> {
public constructor(private configSchema: ConfigSchema) {}
public get middleware(): MiddlewareHandler {
public get middleware(): MiddlewareHandler<HonoPluginEnv<ConfigSchema>> {
// Middleware that adds the plugin's configuration to the request object
return createMiddleware<HonoPluginEnv<ConfigSchema>>(
async (context, next) => {