import type {Or} from 'type-fest';
type TT = Or<true, true>;
//=> true
type TF = Or<true, false>;
//=> true
type FT = Or<false, true>;
//=> true
type FF = Or<false, false>;
//=> false
Note: When boolean is passed as an argument, it is distributed into separate cases, and the final result is a union of those cases. For example, Or<false, boolean> expands to Or<false, true> | Or<false, false>, which simplifies to true | false (i.e., boolean).
import type {Or} from 'type-fest';
type TT = Or<true, true>;
//=> true
type TF = Or<true, false>;
//=> true
type FT = Or<false, true>;
//=> true
type FF = Or<false, false>;
//=> false
Note: When boolean is passed as an argument, it is distributed into separate cases, and the final result is a union of those cases. For example, Or<false, boolean> expands to Or<false, true> | Or<false, false>, which simplifies to true | false (i.e., boolean).