Rocky_Mountain_Vending/.pnpm-store/v10/files/83/5395728a74cdc8819a6fd604078d614ee8748b7441cf91a422abf5fe4aeff2d71b83427a6c9cf602f39bbd93a13a1ee46f266367d4780fc121075975ce9e2a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

19 lines
858 B
Text

export type Prefix<T extends any[]> = T extends [infer First, ...infer Rest] ? [] | [First] | [First, ...Prefix<Rest>] : [];
export type TupleMap<Keypath extends Array<any>, V> = {
set(keys: Prefix<Keypath>, value: V): void;
get(keys: Prefix<Keypath>): V | null;
delete(keys: Prefix<Keypath>): void;
};
/**
* Creates a map whose keys are tuples. Tuples are compared per-element. This
* is useful when a key has multiple parts, but you don't want to concatenate
* them into a single string value.
*
* In the Segment Cache, we use this to store cache entries by both their href
* and their Next-URL.
*
* Example:
* map.set(['https://localhost', 'foo/bar/baz'], 'yay');
* map.get(['https://localhost', 'foo/bar/baz']); // returns 'yay'
*/
export declare function createTupleMap<Keypath extends Array<any>, V>(): TupleMap<Keypath, V>;