Rocky_Mountain_Vending/.pnpm-store/v10/files/7d/8fc9333aa3bbc7621d6439cddaa09c1272a52b7e2b204d32700838841e3d815752ba2cf1a9faeb179cf7cf1a32d5c790c7ce690ec75b734528ac5e586551cb
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

32 lines
1.1 KiB
Text

type Func = (...args: any[]) => any;
export interface Cache<K, V> {
create: CacheCreateFunc<K, V>;
}
interface CacheCreateFunc<K, V> {
(): DefaultCache<K, V>;
}
interface DefaultCache<K, V> {
get(key: K): V | undefined;
set(key: K, value: V | undefined): void;
}
export type Serializer = (args: any[]) => string;
export interface Options<F extends Func> {
cache?: Cache<string, ReturnType<F>>;
serializer?: Serializer;
strategy?: MemoizeFunc<F>;
}
export interface ResolvedOptions<F extends Func> {
cache: Cache<string, ReturnType<F>>;
serializer: Serializer;
}
export interface MemoizeFunc<F extends Func> {
(fn: F, options?: Options<F>): F;
}
export declare function memoize<F extends Func>(fn: F, options?: Options<F>): F | ((arg: any) => any);
export type StrategyFn = <F extends Func>(this: unknown, fn: F, cache: DefaultCache<string, ReturnType<F>>, serializer: Serializer, arg: any) => any;
export interface Strategies<F extends Func> {
variadic: MemoizeFunc<F>;
monadic: MemoizeFunc<F>;
}
export declare const strategies: Strategies<Func>;
export {};