Today I want to talk about the never type. As you can understand, this type identifies a piece of code that will never be executed or represents a state that shouldn’t exist. Here an example const throwException: () => never = () => { throw new E...

Markdown supported · ⌘↵ to post
No responses yet.