Sep 23, 2023
It certainly provides the illusion of this. However, if your code interacts with an API, Typescript can't know if something you get from the backend has null somewhere it's defined as non-nullable. Sorry, Charlie.
It certainly provides the illusion of this. However, if your code interacts with an API, Typescript can't know if something you get from the backend has null somewhere it's defined as non-nullable. Sorry, Charlie.
Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.