- Published on
TypeScript NEVER type
- Authors
- Name
- Lucas Floriani
- @lucasfloriani13
TypeScript NEVER type
Is a type that Typescript uses when I function never returns a value.
Interesting case of never usage, maybe it can be better handled to make sure all cases are implemented:
You could use a eslint check to make sure all cases are handled: