never data type in typescript

Solutions on MaxInterview for never data type in typescript by the best coders in the world

showing results for - "never data type in typescript"
Greta
04 Aug 2020
1function infiniteLoop(): never {
2    while (true) {
3    }
4    return 'this will never execute';
5}