skip to content
$
ashik
@dev
writing
stack
contact
rss
~/blog
/ tags /
zod
Engineering notes about zod
Articles, implementation notes, and lessons from projects involving zod.
cat ~/writing/zod
1 posts
2025.05.29
Narrowing Unknown Without Lying to the Compiler
A small TypeScript and Zod helper that checks a nested property at runtime and narrows the type from the same dotted path, plus where it breaks and how I use it on third-party responses.
typescript
zod
type-safety
14 min
->