Course lesson
Make your optional fields required in TypeScript
In our last lesson, we saw how we can make all the required fields in a type to be optional. Here we learn the opposite i.e. how to make all the optional fields to be required with the help of Required.
- Duration
- 0 min
- Access
- Pro
- Transcript
- Available
In our last lesson, we saw how we can make all the required fields in a type to be optional. Here we learn the opposite i.e. how to make all the optional fields to be required with the help of Required.