TypeScript: Tailor required and optional fields for related API endpoints
TL;DR: TypeScript's utility types make it easy to tailor which model fields are required, optional, or even present across API endpoints.
When you're working with a REST API in TypeScript, it's a good idea to create interfaces for the models (or mess...
spaceaardvark.hashnode.dev3 min read