UNPKG

@busy-hour/blaze

Version:

<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>

13 lines (12 loc) • 736 B
import type { OpenAPIDefinitions, RouteConfig } from '@asteasolutions/zod-to-openapi/dist/openapi-registry'; import type { Env, Schema } from 'hono'; import type { BlazeRouter } from '../../router/BlazeRouter'; import type { BlazeOpenAPIOption } from '../../types/router'; export declare function assignOpenAPIRegistry<E extends Env = Env, S extends Schema = NonNullable<unknown>, BasePath extends string = '/'>(router: BlazeRouter<E, S, BasePath>, docPath: string, def: OpenAPIDefinitions): void | import("zod").ZodTypeAny | { name: string; ref: { $ref: string; }; }; export declare function fixOpenApiPath(path: string): string; export declare function createOpenApiRouter(route: BlazeOpenAPIOption): RouteConfig;