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.

6 lines 219 B
/** * @public * If TTest is never, return TTrue, else TFalse. */ export type TNeverPredicate<TTest, TTrue, TFalse> = (() => TTest) extends () => never ? TTrue : TFalse; //# sourceMappingURL=t-never-predicate.d.ts.map