Rocky_Mountain_Vending/.pnpm-store/v10/files/51/7448973f3a0c7af34b8c12ee1f1e0c2418d46283dcf25b14fa52b6a987fba8edb8e199280035f4c85a1ec8abf6a0c27ad6cbca994fcba485d416c07641fdad
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
No EOL
1.4 KiB
Text

/**
* Decorate computableArtifact with a caching `request()` method which will
* automatically call `computableArtifact.compute_()` under the hood.
* @template {{name: string, compute_(dependencies: unknown, context: LH.Artifacts.ComputedContext): Promise<unknown>}} C
* @template {Array<keyof LH.Util.FirstParamType<C['compute_']>>} K
* @param {C} computableArtifact
* @param {(K & ([keyof LH.Util.FirstParamType<C['compute_']>] extends [K[number]] ? unknown : never)) | null} keys
* List of properties of `dependencies` used by `compute_`; other properties are filtered out.
* Use `null` to allow all properties. Ensures that only required properties are used for caching result.
* For optional properties of `dependencies`, undefined cannot be used and if found is treated as an error.
* This is to guard against developer mistakes. For optional properties, make it nullable instead.
*/
export function makeComputedArtifact<C extends {
name: string;
compute_(dependencies: unknown, context: LH.Artifacts.ComputedContext): Promise<unknown>;
}, K extends Array<keyof LH.Util.FirstParamType<C["compute_"]>>>(computableArtifact: C, keys: (K & ([keyof LH.Util.FirstParamType<C["compute_"]>] extends [K[number]] ? unknown : never)) | null): C & {
request: (dependencies: LH.Util.FirstParamType<C["compute_"]>, context: LH.Artifacts.ComputedContext) => ReturnType<C["compute_"]>;
};
//# sourceMappingURL=computed-artifact.d.ts.map