Ran into a bug where TypeScript infers that an empty array (literal `[]`) to be of type `never[]`, which it interprets to never happen and thus to be of no sigificance.
Runtime errors then ensue.
Ran into a bug where TypeScript infers that an empty array (literal `[]`) to be of type `never[]`, which it interprets to never happen and thus to be of no sigificance.
Runtime errors then ensue.
Bug Report I ran into this behavior where TypeScript infers that an empty array (literal []) to be of type never[], which it interprets to never happen and thus to be of no sigificance. Runtime err...
Amazingly this is TypeScript "working as intended": https://github.com/microsoft/TypeScript/issues/51979
😜😬🫣
Bug Report I ran into this behavior where TypeScript infers that an empty array (literal []) to be of type never[], which it interprets to never happen and thus to be of no sigificance. Runtime err...