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>
24 lines
478 B
Text
24 lines
478 B
Text
/**
|
|
Represents a map with `unknown` key and value.
|
|
|
|
Use case: You want a type that all maps can be assigned to, but you don't care about the value.
|
|
|
|
@example
|
|
```
|
|
import type {UnknownMap} from 'type-fest';
|
|
|
|
type IsMap<T> = T extends UnknownMap ? true : false;
|
|
|
|
type A = IsMap<Map<string, number>>;
|
|
//=> true
|
|
|
|
type B = IsMap<ReadonlyMap<number, string>>;
|
|
//=> true
|
|
|
|
type C = IsMap<string>;
|
|
//=> false
|
|
```
|
|
|
|
@category Type
|
|
*/
|
|
export type UnknownMap = ReadonlyMap<unknown, unknown>;
|