Inline object do not throw type error
With the above function I would expect that typescript will complain when types do not match between the 2 arguments
I could not wrap my head around why this is happening
1 Reply
that happens because you are using constants in the first example which narrows the type further
your last example is basically equal to:
which also does not throw an error