Open 981377660LMT opened 3 months ago
function foo(): number { todo() } function todo(): never { throw new Error('todo') }
never 可以赋给任何类型的值
never 可以赋给任何类型的值