UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

19 lines (16 loc) 314 B
import {Boolean} from './Boolean' /** 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 type Not<B extends Boolean> = { 0: 1 1: 0 }[B]