4 ms·
You pretty much always have to define your record type with `| undefined` tacked on to the value type parameter. With that, the problem mostly goes away.
by bilalq 5y ago
You pretty much always have to define your record type with `| undefined` tacked on to the value type parameter. With that, the problem mostly goes away.
- lugged 5y agoWhat's the point of typing things if you have to constantly typecheck them anyway?
- presentation 5y agoYeah, but I use libraries that don’t do that, and have teammates that don’t care about this