Skip to main content
Module

x/rimbu/typical/mod.ts>U.Validate

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

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

Examples

Example 1

Validate<IsEven<4>> => true
Validate<IsEven<5>> => never
definition: V extends false ? never : true