UNPKG

@busy-hour/blaze

Version:

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

6 lines (5 loc) • 804 B
import type { ZodSchema } from 'zod'; import type { Action, ActionValidator } from '../types/action'; import type { RecordUnknown } from '../types/common'; export declare function createActionValidator<H extends ZodSchema, P extends ZodSchema, Q extends ZodSchema, B extends ZodSchema>(validator: ActionValidator<H, P, Q, B>): ActionValidator<H, P, Q, B>; export declare function createAction<R, HR, M extends RecordUnknown, H extends ZodSchema, P extends ZodSchema, Q extends ZodSchema, B extends ZodSchema>(action: Action<R, HR, M, H, P, Q, B>): Action<R, HR, M, H, P, Q, B, import("..").AcceptedAfterHook<HR, M, H["_output"], P["_output"], Q["_output"], B["_output"]>, import("..").AcceptedBeforeHook<M, H["_output"], P["_output"], Q["_output"], B["_output"]>, "query" | "mutation" | "subscription">;