We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4695a73 commit 1fe23beCopy full SHA for 1fe23be
src/validator/response-validator.ts
@@ -6,7 +6,7 @@ type ResponseValidationTargetKeys = keyof ResponseValidationTargets
6
export type ResponseValidationFunction<
7
U extends ResponseValidationTargetKeys,
8
E extends Env = {},
9
- P extends string,
+ P extends string = string
10
> = (
11
value: ResponseValidationTargets[U],
12
c: Context<E, P>
@@ -24,7 +24,7 @@ export const responseValidator = <
24
E extends Env = any
25
>(
26
target: U,
27
- validationFunc: ResponseValidationFunction<U, P2, E>
+ validationFunc: ResponseValidationFunction<U, E, P2>
28
): MiddlewareHandler<E, P> => {
29
return async (c, next) => {
30
await next()
0 commit comments