I know that below does NOT mean the return 'type' is void. What I understood is that voidFunc returns nothing since it is returning 'void'. Why does it return any type?
type voidFunc = () => void
const myFunc: voidFunc = () => {
return 'hello'
}
How is it different from writing it as below?
type voidFunc = () => any