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
472 B
Text
25 lines
472 B
Text
/**
|
|
Represents an array with `unknown` value.
|
|
|
|
Use case: You want a type that all arrays can be assigned to, but you don't care about the value.
|
|
|
|
@example
|
|
```
|
|
import type {UnknownArray} from 'type-fest';
|
|
|
|
type IsArray<T> = T extends UnknownArray ? true : false;
|
|
|
|
type A = IsArray<['foo']>;
|
|
//=> true
|
|
|
|
type B = IsArray<readonly number[]>;
|
|
//=> true
|
|
|
|
type C = IsArray<string>;
|
|
//=> false
|
|
```
|
|
|
|
@category Type
|
|
@category Array
|
|
*/
|
|
export type UnknownArray = readonly unknown[];
|