Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
513 B
Text
25 lines
513 B
Text
import type {IsEqual} from './is-equal';
|
|
|
|
/**
|
|
Returns a boolean for whether either of two given types are true.
|
|
|
|
Use-case: Constructing complex conditional types where multiple conditions must be satisfied.
|
|
|
|
@example
|
|
```
|
|
import type {Or} from 'type-fest';
|
|
|
|
Or<true, false>;
|
|
//=> true
|
|
|
|
Or<false, false>;
|
|
//=> false
|
|
```
|
|
|
|
@see {@link And}
|
|
*/
|
|
export type Or<A extends boolean, B extends boolean> = [A, B][number] extends false
|
|
? false
|
|
: true extends [IsEqual<A, true>, IsEqual<B, true>][number]
|
|
? true
|
|
: never;
|