Typescript for the busy Java developer
summary
Live code demos demonstrate that TypeScript compiles with tsc and tsserver, runs on backend Node, and adds a structural typing system that accepts objects by shape not name. Examples include union types with control-flow type narrowing and type guards, discriminated unions, generics that constrain allowed property keys, and utility types like Omit, Partial, and Readonly to shrink API shapes. A tagged template example shows an SQL tag that builds queries and avoids injection. Recommendations: install via npm or VS Code extension and enable strict for full type checks.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:50Why Typescript
- 1:42About me
- 2:47What is Typescript
- 4:21Installing Typescript
- 4:52Creating a new project
- 7:10Structural type system
- 9:23Declaring variables
- 11:42Types
- 13:32Maps
- 16:52Aliases
- 18:35Intersection
- 20:26linters
- 20:47functions
- 22:46add
- 25:34union types
- 27:40type guard
- 34:35type predicate
- 38:34generics
- 43:16utility types
- 47:50string template








