4 ms·
I'm aware of that, I was explaining why `some{T} | undefined` is problematic in Typescript. If you have a signature with both option type and undefined it's a s
by angio 6y ago
I'm aware of that, I was explaining why `some{T} | undefined` is problematic in Typescript. If you have a signature with both option type and undefined it's a signal of a code smell.
- mbo 6y agoBut `some{T}` isn't an option type, it's a member of the option type!