u/sinclair_zx81in r/typescript • Recommends
On “TypeBox: Template Literals + Conditional Types at Runtime”
4.4K subscribers • 1 video on Hallway
Intermediate. Assumes working knowledge.
9.1K views3 years ago2 recommendations
Web developmentProgramming languagesTypeScriptNode.js, Deno and BunAPI design
Matteo Collina demonstrates how to achieve end-to-end type safety and runtime validation in Fastify using TypeBox.
What if I told you Fastify has first-class typescript support, allowing for fully typed requests and replies? And you could use those types to actually validate the incoming data, so you avoid potential security and consistency issues? This is the video for you. We will cover how to integrate npmjs.com/package/@sinclair/typebox with Fastify using github.com/fastify/fastify-type-provider-typebox! All the code in the video is published at github.com/mcollina/type-safe-fastify.What people say. Recommended for learning how to implement runtime validation and automatic OpenAPI generation in Fastify.
u/sinclair_zx81in r/typescript • Recommends
On “TypeBox: Template Literals + Conditional Types at Runtime”
u/pacioniin r/node • Recommends
On “Well-Structured, Scalable Fastify Project with TypeScript - Seeking Advice”
u/sinclair_zx81in r/typescript • Recommends
On “I'm looking to use my openapi spec to dyanamically create types”
u/sinclair_zx81in r/typescript • Recommends
On “Introducing TypeBox 1.0: A Runtime Type System for JavaScript”