[掘竅] TypeScript. 判斷某個型別參數是否是never. type IsNever<T = never> = [T] extends [never] ? true : false; type Foo = IsNever; // true
確定! 回上一頁