DEV Community

Discussion on: Advanced TypeScript Types cheat sheet (with examples)

Collapse
 
michaeljota profile image
Michael De Abreu

The difference between the two, is that in Maybe the value is required, and in the second one is optional. So, you can have Maybe values and those values would be either defined or not, but would still be required. I have found this to be useful in React.