Files
dto.ts
What you'll learn
- Derive types with Omit, Pick, Partial, Required, Readonly and Record, so one change to a model reaches every type built from it
- Write a mapped type over keyof T
- Apply a partial update without mutating the original or letting undefined erase a value
Press Run tests to start the app. Its log appears here.Tests
- dto.spec.tsrun to see its tests