Introduction
TypeScript supports bottom types1. Cases where this occurs:
- A function never returns (e.g. if the function body has
while(true){
}) - A function always throws
(
function foo(){throw new Error('Not Implemented')
})
Oct 07, 20201 min read
TypeScript supports bottom types1. Cases where this occurs:
while(true){
})function foo(){throw new Error('Not Implemented')
})