Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/utils.ts>Pred

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Pred
import { type Pred } from "https://deno.land/x/rimbu@1.0.2/typical/utils.ts";

Returns false is the given type is false, true otherwise.

Examples

Example 1

Pred<false> => false
Pred<number> => true
Pred<true> => true
definition: V extends false ? false : true