Answers for "never data type in typescript"

1

never data type in typescript

function infiniteLoop(): never {
    while (true) {
    }
    return 'this will never execute';
}
Posted by: Guest on December-07-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language