abiA
Denoβ€’2y agoβ€’
26 replies
abi

Type-narrowing/covariance/contravariance

Why is it that
5
has type
5
but
{five:5}
has type
{five:number}
and not
{five:5}
?
Was this page helpful?