Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#Zod

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

8 articles in the current browsing window, ordered by publication date.

Deep Dive into the buildTool Factory and Its Fail‑Closed Default Values

The article explains how the buildTool factory injects conservative default safety flags (Fail‑Closed), dramatically reduces boilerplate for the 30‑plus methods required by Claude Code's Tool interface, and combines TypeScript compile‑time checks with Zod runtime validation, illustrated with GlobTool, BashTool and FileEditTool examples, while discussing trade‑offs and design recommendations.

Can NestJS v12’s Full ESM Switch, Vitest Adoption, and Zod Integration Upgrade Old Projects Smoothly?

The article examines NestJS v12’s upcoming major changes—including a full migration to ESM, replacing Jest with Vitest, and native Zod schema support—explains the technical reasons behind them, outlines migration timelines, and evaluates how both new and existing projects can adopt the updates with minimal disruption.

Why TypeScript Is Not Enough and How Zod Complements It

While TypeScript guarantees compile-time type safety, it cannot validate runtime data such as API responses or form inputs, so developers add extra checks; Zod solves this by offering a TypeScript-first schema library that performs runtime validation, infers types, reduces duplication, and integrates seamlessly with modern frameworks.

Why Runtime Type Checking Matters in TypeScript and How to Implement It

The article explains the difference between compile‑time and runtime type checking, why runtime checks are essential for data‑exchange scenarios in TypeScript projects, and compares several practical solutions—including JSON schemas, API‑based libraries like Zod, class‑validator, TypeScript‑JSON‑Schema, TypeScript‑is, and DeepKit—highlighting their advantages, drawbacks, and implementation details.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.