UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

8 lines (5 loc) 174 B
/** * @public * If TTest is never, return TTrue, else TFalse. */ export type TNeverPredicate<TTest, TTrue, TFalse> = (() => TTest) extends () => never ? TTrue : TFalse;