|
|
|
|
|
by eyelidlessness
1198 days ago
|
|
The case I was trying to convey doesn’t narrow the actual type for anything outside its own function body. Any footgun that exists after the function call already existed before it. It just implies “I’m only looking at your keys not your values”. |
|
That's what `unknown` is for. `any` behaves like `never` (in covariant positions), which is exactly the opposite.