Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Boolean/Not"

Index

Type aliases

Type aliases

Not

Not<B>: { 0: 1; 1: 0; }[B]

Logical ! operator (behaves like the JS one)

Type parameters

returns

Boolean

example

import {B} from 'ts-toolbelt'

type test0 = B.Not<B.True>  // False
type test1 = B.Not<B.False> // True

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.