Skip to main content
Module

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

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

Returns true if the input type is false, and false if the input type is true.

Examples

Example 1

Not<true> => false
Not<false> => true
Not<boolean> => never

Type Parameters

V extends boolean
definition: boolean extends V ? never : V extends true ? false : true