@axah/koa
Advanced tools
Comparing version 0.0.0-20240606093109 to 0.0.0-20240606134546
@@ -22,3 +22,3 @@ import type { Context, Middleware, Next } from 'koa'; | ||
type Executor<B, Q, P> = (input: ExecutorInput<B, Q, P>) => Promise<void> | void; | ||
export default function createApiMethod<BodyIn, QueryIn, ParamsIn, BodyOut, QueryOut, ParamsOut>({ allowedRoles, body: bodyValidator, query: queryValidator, params: paramsValidator, files: allowFiles, exposeErrorCause, hashAlgorithm, }: Input<ZodType<BodyOut, ZodTypeDef, BodyIn>, ZodType<QueryOut, ZodTypeDef, QueryIn>, ZodType<ParamsOut, ZodTypeDef, ParamsIn>>, executor: Executor<BodyOut, QueryOut, ParamsOut>, errorFormatter?: (...args: any) => void): Middleware; | ||
export default function createApiMethod<BodyIn, QueryIn, ParamsIn, BodyOut, QueryOut, ParamsOut>({ allowedRoles, body: bodyValidator, query: queryValidator, params: paramsValidator, files: allowFiles, exposeErrorCause, hashAlgorithm, }: Input<ZodType<BodyOut, ZodTypeDef, BodyIn>, ZodType<QueryOut, ZodTypeDef, QueryIn>, ZodType<ParamsOut, ZodTypeDef, ParamsIn>>, executor: Executor<BodyOut, QueryOut, ParamsOut>, errorFormatter?: (...args: any[]) => any): Middleware; | ||
export {}; |
{ | ||
"name": "@axah/koa", | ||
"version": "0.0.0-20240606093109", | ||
"version": "0.0.0-20240606134546", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
Sorry, the diff of this file is not supported yet
46516