Type safety from the database to the frontend
summary
A library at databases generates TypeScript from SQL schemas and PG typed links query strings to precise result types so schema changes update types automatically. Codegen for GraphQL via graphql code gen and small custom generators for Rust and translations produce matching client and server types. Runtime parsing and serialization come from fun types and fun types schemas, and TS reset forces JSON to be validated. Demos show generators and runtime checks working end to end.
AI-written summary · about
chapters (14)
- 0:00End-to-end type safety
- 1:53Database queries break type safety
- 3:19Types from database schemas
- 4:42Type-safe queries with PG-Typed
- 6:09API layers with GraphQL
- 7:13Custom GraphQL type generation
- 8:39Shared types for REST APIs
- 12:32Types for non-TypeScript backends
- 15:59Types from JSON files
- 19:12Runtime validation for APIs
- 20:38Runtime validation with Fun Types
- 23:53Parsing and serialization benefits
- 26:04TS Reset for JSON safety
- 27:51Type safety solutions
related talks
25mType-safe GraphQL with TypeScript
57mType safe GraphQL with TypeScript
27mWeb applications of the future with TypeScript and GraphQL
06mAutomagic TypeScript Codegen for GraphQL
07mManaging TypeScript and GraphQL types in Node
39mEnd to end typing for web applications
35mFull-stack Type Safety with React, GraphQL, and TypeScript
30mZero-cost Type Safety for your Database with Prisma
