Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

How do you deal with partial types?

How do you deal with partial types?

FromThe Call Kent Podcast


How do you deal with partial types?

FromThe Call Kent Podcast

ratings:
Length:
4 minutes
Released:
Dec 14, 2022
Format:
Podcast episode

Description

Fully typed apps are the correct approach. Let's say your API backend returns a 'full' type (of a Workshop type with 8 fields for example), and, secondly, a list of Workshops but this time only with a 'name' field. In the frontend, you have a 'full view', a 'list of workshops view' (showing only the name of each) and a 'preview view' of a Workshop which uses 3 of its 8 fields. How do you describe these types in the app and at the interfaces between the frontend and backend?

How do you deal with partial types?
Released:
Dec 14, 2022
Format:
Podcast episode

Titles in the series (100)

The Call Kent podcast is a regular podcast where you call in with a question and Kent answers. Call in with your questions right from your web browser with any device at https://kentcdodds.com/call