@axah/koa
Advanced tools
Comparing version 0.0.0-20240828031157 to 0.0.0-20240911081145
@@ -76,3 +76,8 @@ import { Middleware, Context, Next } from 'koa'; | ||
type Executor<B, Q, P> = (input: ExecutorInput<B, Q, P>) => Promise<void> | void; | ||
declare function createApiMethod<BodyIn, QueryIn, ParamsIn, BodyOut, QueryOut, ParamsOut>({ allowedRoles, body: bodyValidator, query: queryValidator, params: paramsValidator, files: allowFiles, exposeErrorCause, hashAlgorithm, errorFormatter, }: Input<ZodType<BodyOut, ZodTypeDef, BodyIn>, ZodType<QueryOut, ZodTypeDef, QueryIn>, ZodType<ParamsOut, ZodTypeDef, ParamsIn>>, executor: Executor<BodyOut, QueryOut, ParamsOut>): Middleware; | ||
declare function createApiMethod<BodyIn, QueryIn, ParamsIn, BodyOut, QueryOut, ParamsOut>({ allowedRoles, body: bodyValidator, query: queryValidator, params: paramsValidator, files: allowFiles, exposeErrorCause, hashAlgorithm, errorFormatter, }: Input<ZodType<BodyOut, ZodTypeDef, BodyIn>, ZodType<QueryOut, ZodTypeDef, QueryIn>, ZodType<ParamsOut, ZodTypeDef, ParamsIn>>, executor: Executor<BodyOut, QueryOut, ParamsOut>, options?: { | ||
deprecation?: { | ||
markDeprecated?: boolean; | ||
additionalMessage?: string; | ||
}; | ||
}): Middleware; | ||
@@ -79,0 +84,0 @@ declare const _default: { |
{ | ||
"name": "@axah/koa", | ||
"version": "0.0.0-20240828031157", | ||
"version": "0.0.0-20240911081145", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43717
1084