UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

18 lines (17 loc) 359 B
import { Boolean } from './_Internal'; /** * Logical `!` operator (behaves like the JS one) * @param B to negate * @returns [[Boolean]] * @example * ```ts * import {B} from 'ts-toolbelt' * * type test0 = B.Not<B.True> // False * type test1 = B.Not<B.False> // True * ``` */ export declare type Not<B extends Boolean> = { 0: 1; 1: 0; }[B];