Typescript fails to consider `never` functions when checking values

后端 未结 0 695
深忆病人
深忆病人 2021-01-31 05:09

I have the following function:

function neverEnd(): never {
    throw Error(\'Error\');
}

I use it in another function like so:

fu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题