semajy - Hello! I'm sort of new to typescript a...
Tim Marcus Moore - I found that z.record evalua...
z.record
evaluates non-enumerable property keys. I'm not sure whether this is a bug or expected behaviour. It was unexpected to me. I ran into this validating a MobX observable object using a z.record
with z.string()
keys. MobX adds non-enumerable symbol properties, which caused parsing to fail.
If it's a bug, I can open an issue on GitHub, but if it's intentional, I'll just adjust my expectations 🙂
This test demonstrates the problem....Svish - Does inference somehow work differently...
MattIPv4 - :WaveDoggo: Dependeabot has opened a...
import-x/no-unresolved
being unable to resolve zod
. Have others seen this and know how to get around it?CrisOG - Hey! I just read Zod stable is coming ...
Tango - I have the need to handle discriminated...
MHD Alaa - Hi everyone, first time here.I’m ju...
MattIPv4 - :WaveDoggo: I think this might be a ...
import()
types. I've figured out how to partially preserve them when generating declaration files, but I'm still getting some unknown
s included instead of references to the import()
types.Maxiviper117 - I'm working on validating an obj...
MattIPv4 - :WaveDoggo: Hey Zod experts. Given a...
Gludek - Hey,Quick question, is there any way ...
Leozinn - const AuthorSchema = z.object({ ...

Leozinn - i'm compiled my project, and interfac...

hinogi - tsconst a = z.object({ foo: z.strin...
versace - hey!I am currently investigating wh...
.toLowerCase()
and then build your schema on the lowercased keys.Dawson - Can someone sanity check this for me? ...
Torbjørn - Hi!We use zod to validate data com...
@vercel/stega
a package that encodes invisible strings into its output....