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.

14 lines (8 loc) 416 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [TNeverPredicate](./rc-js-util.tneverpredicate.md) ## TNeverPredicate type If TTest is never, return TTrue, else TFalse. **Signature:** ```typescript export type TNeverPredicate<TTest, TTrue, TFalse> = (() => TTest) extends () => never ? TTrue : TFalse; ```