hinogi
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...

9 replies
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...
ok so foo has to be foo: null | undefined and {} is not a valid solutions. also, if null, the key will persist, if undefined the key is gone 😄 thanks playground
9 replies
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...
9 replies
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...
but I am not sure if it needs to be
or something
9 replies
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...
sure
9 replies
ZZod
•Created by hinogi on 2/25/2025 in #questions
hinogi - tsconst a = z.object({ foo: z.strin...
bit additional background, such a thing is generated by graphql codegen schema validation, I try to figure out how to fix this for optional input types depending on non nullable input properties
9 replies