Skip to content
Dev.to1 min read

valicore: Runtime Type Validation for TypeScript...

TypeScript is great for catching type errors at compile time — but what about runtime? External API responses, form data, env vars — they're all untyped at runtime. valicore fixes that. What is valicore? A zero-dependency TypeScript validation library with full schema inference, type guards, and safe parsing. npm install valicore bun add valicore Core Features Schema Definition import { v } from 'valicore'; const UserSchema = v.object({ id: v.number(), name: v.string().min(1).max(100), email: v.
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Get the 10 best reads every Sunday

Curated by AI, voted by readers. Free forever.

Liked this? Start your own feed.

0
0