mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): ♻️ Upgrade zod-openapi to 0.18.3
Needed to add "as const" to all middleware handlers :)
This commit is contained in:
parent
fbfd237f27
commit
621dd7e9d9
74 changed files with 86 additions and 86 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue