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 d0af550 commit 874ddd9Copy full SHA for 874ddd9
templates/fastify/src/core/schema.ts
@@ -9,9 +9,11 @@ export type ZodRestrictFieldsShape<Target> = {
9
};
10
11
export type ZodUnrestrictShape<Target> = {
12
- [K in keyof Target]?: ZodType<Target[K]>;
+ [K in keyof Target | (string & {})]?: K extends keyof Target
13
+ ? ZodType<Target[K]>
14
+ : ZodTypeAny;
15
16
17
export type ZodUnrestrictFieldsShape<Target> = {
- [K in keyof Target]?: ZodTypeAny;
18
+ [K in keyof Target | (string & {})]?: ZodTypeAny;
19
0 commit comments