js-util

Home > rc-js-util > TNeverPredicate

TNeverPredicate type

If TTest is never, return TTrue, else TFalse.

Signature:

export declare type TNeverPredicate<TTest, TTrue, TFalse> = (() => TTest) extends () => never ? TTrue : TFalse;