-
Notifications
You must be signed in to change notification settings - Fork 10
Boolean
Michael Poteat edited this page Feb 27, 2023
·
3 revisions
hkt-toolbelt / Boolean
Ƭ _$and<T
, U
>: [T
, U
] extends [true
, true
] ? true
: false
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$imply<T
, U
>: [T
, U
] extends [true
, false
] ? false
: true
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$nand<T
, U
>: [T
, U
] extends [true
, true
] ? false
: true
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$nimply<T
, U
>: [T
, U
] extends [true
, false
] ? true
: false
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$nor<T
, U
>: [T
, U
] extends [false
, false
] ? true
: false
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$not<T
>: T
extends true
? false
: true
Name | Type |
---|---|
T |
extends boolean
|
Ƭ _$or<T
, U
>: [T
, U
] extends [false
, false
] ? false
: true
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$xnor<T
, U
>: T
extends U
? true
: false
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|
Ƭ _$xor<T
, U
>: T
extends U
? false
: true
Name | Type |
---|---|
T |
extends boolean
|
U |
extends boolean
|