Skip to content

Commit 73a3c1d

Browse files
committed
Changed 33 solution
1 parent f1f2781 commit 73a3c1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/07-challenges/33-zod-with-express.solution.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import express, { RequestHandler } from "express";
22
import { it } from "vitest";
33
import { z, ZodError } from "zod";
44
import { Equal, Expect } from "../helpers/type-utils";
5+
import { ParsedQs } from "qs";
56

67
const makeTypeSafeHandler = <
7-
TQuery extends Record<string, string> = any,
8-
TBody extends Record<string, string> = any
8+
TQuery extends ParsedQs = any,
9+
TBody extends Record<string, any> = any
910
>(
1011
config: {
1112
query?: z.Schema<TQuery>;

0 commit comments

Comments
 (0)