Rocky_Mountain_Vending/.pnpm-store/v10/files/dc/0f12a7b0613051ec378451d44e00efdcb8d1e0be1097c4a5c0af3f0ef5b4dbd99be57cfae708d9ac7d410cf84e001fac37ea4e362788f93aac294a0f3279af
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

37 lines
895 B
Text

/**
* @license
* Copyright 2022 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import type {JSHandle} from '../api/JSHandle.js';
import type {PuppeteerInjectedUtil} from '../injected/injected.js';
/**
* @internal
*/
export interface PuppeteerUtilWrapper {
puppeteerUtil: Promise<JSHandle<PuppeteerInjectedUtil>>;
}
/**
* @internal
*/
export class LazyArg<T, Context = PuppeteerUtilWrapper> {
static create = <T>(
get: (context: PuppeteerUtilWrapper) => Promise<T> | T,
): T => {
// We don't want to introduce LazyArg to the type system, otherwise we would
// have to make it public.
return new LazyArg(get) as unknown as T;
};
#get: (context: Context) => Promise<T> | T;
private constructor(get: (context: Context) => Promise<T> | T) {
this.#get = get;
}
async get(context: Context): Promise<T> {
return await this.#get(context);
}
}