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>
19 lines
753 B
Text
19 lines
753 B
Text
declare abstract class ResourceManager<T, Args> {
|
|
private resources;
|
|
abstract create(resourceArgs: Args): T;
|
|
abstract destroy(resource: T): void;
|
|
add(resourceArgs: Args): T;
|
|
remove(resource: T): void;
|
|
removeAll(): void;
|
|
}
|
|
declare class IntervalsManager extends ResourceManager<number, Parameters<typeof setInterval>> {
|
|
create(args: Parameters<typeof setInterval>): number;
|
|
destroy(interval: number): void;
|
|
}
|
|
declare class TimeoutsManager extends ResourceManager<number, Parameters<typeof setTimeout>> {
|
|
create(args: Parameters<typeof setTimeout>): number;
|
|
destroy(timeout: number): void;
|
|
}
|
|
export declare const intervalsManager: IntervalsManager;
|
|
export declare const timeoutsManager: TimeoutsManager;
|
|
export {};
|