Skip to content

Commit 1fe23be

Browse files
committed
chore: format
1 parent 4695a73 commit 1fe23be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validator/response-validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type ResponseValidationTargetKeys = keyof ResponseValidationTargets
66
export type ResponseValidationFunction<
77
U extends ResponseValidationTargetKeys,
88
E extends Env = {},
9-
P extends string,
9+
P extends string = string
1010
> = (
1111
value: ResponseValidationTargets[U],
1212
c: Context<E, P>
@@ -24,7 +24,7 @@ export const responseValidator = <
2424
E extends Env = any
2525
>(
2626
target: U,
27-
validationFunc: ResponseValidationFunction<U, P2, E>
27+
validationFunc: ResponseValidationFunction<U, E, P2>
2828
): MiddlewareHandler<E, P> => {
2929
return async (c, next) => {
3030
await next()

0 commit comments

Comments
 (0)