Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/utils.ts>Validate

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

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