Type alias And<B1, B2>

And<B1, B2>: If<B1, If<B2, true, false>, false>

Logical AND between two boolean types B1 and B2.

Type Parameters

  • B1 extends boolean
  • B2 extends boolean

Example

And<true, false>; // false
And<true, true>; // true