Acknowledgement
Comment
function neverFunc() {
throw new Error("neverFunc");
}
const neverFunc2 = () => {
throw new Error("neverFunc2")
};
so why neverFun has return type of "void" while neverFunc2 has a default never return type? since they have the same function body?
Acknowledgement
Comment
function neverFunc() {
throw new Error("neverFunc");
}
const neverFunc2 = () => {
throw new Error("neverFunc2")
};
so why neverFun has return type of "void" while neverFunc2 has a default never return type? since they have the same function body?