TypeScript for APIs
summary
TypeScript powers definition files (.d.ts) that give JavaScript packages real editor intellisense (VS Code uses them even for plain JS), and community types live in DefinitelyTyped/@types installable from npm (aka.ms/types helps find them). typedoc generates HTML docs from types and comments. OpenAPI/Swagger tooling (swagger-express-mw, nswag) auto-generates client SDKs across languages and server stubs from specs. GraphQL with Apollo generates TypeScript types from schemas and often replaces dozens of REST endpoints with a single typed query surface.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:55What is TypeScript
- 3:47Why TypeScript
- 5:16Definition Files
- 6:59Intellisense
- 9:01DefinitelyTyped
- 11:32TypeDoc
- 15:14OpenAPI
- 17:05Swagger
- 22:11REST
- 26:20GraphQL
- 27:53GraphQL vs TypeScript
- 30:36GraphQL Cons
- 31:54Recap
related talks
20mTypeScript and ES6
33mTypeScript - JavaScript you are gonna love
46mTypeScript all the things!
30mTypeScript: Seeing Past the Hype
45mType-Safe APIs - Syncing Back & Front End Types w/ Code Generation
30mTypeScript: Gradual, Structural, Dynamic, Static
24mTypeScript: Static types for JavaScript
24mTypeScript - You'll Like It
