Type Challenges Judge

IsAny

提出詳細

type IsAny<T> = (T extends true ? T extends false ? true:false:false) extends false ? false:true;
提出日時2022-06-28 00:57:39
問題IsAny
ユーザーwaki285
ステータスWrong Answer
テストケース
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<IsAny<any>, true>>, Expect<Equal<IsAny<undefined>, false>>, Expect<Equal<IsAny<unknown>, false>>, Expect<Equal<IsAny<never>, false>>, Expect<Equal<IsAny<string>, false>>, ]