Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Boolean.Not

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias Boolean.Not
import { type Boolean } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Not } = Boolean;

Logical ! operator (behaves like the JS one)

Examples

Example 1

import {B} from 'ts-toolbelt.ts'

type test0 = B.Not<B.True>  // False
type test1 = B.Not<B.False> // True
definition: { 0: 1; 1: 0; }[B]