Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Boolean/And"

Index

Type aliases

Type aliases

And

And<B1, B2>: { 0: { 0: 0; 1: 0; }; 1: { 0: 0; 1: 1; }; }[B1][B2]

Logical && operator (behaves like the JS one)

Type parameters

returns

Boolean

example

import {B} from 'ts-toolbelt'

type test0 = B.And<B.True, B.False>          // False
type test1 = B.And<B.True, B.True>           // True
type test2 = B.And<B.True | B.False, B.True> // Boolean

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