Skip to content

Commit

Permalink
update zod schema type
Browse files Browse the repository at this point in the history
  • Loading branch information
dileepainivossl committed Aug 3, 2024
1 parent 5d89d58 commit 4673534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/requestValidator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ZodError, ZodSchema } from 'zod'
import { ZodError, type ZodSchema } from 'zod'

export const requestBodyValidator = (schema: ZodSchema<any, any, any>) => {

Check warning on line 3 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 3 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 3 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
return (req: any, res: any, next: any) => {

Check warning on line 4 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 4 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 4 in src/middlewares/requestValidator.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
Expand Down

0 comments on commit 4673534

Please sign in to comment.