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>
34 lines
No EOL
869 B
Text
34 lines
No EOL
869 B
Text
/**
|
|
* Creates a function from a string.
|
|
*
|
|
* @internal
|
|
*/
|
|
export declare const createFunction: (functionValue: string) => ((...args: unknown[]) => unknown);
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare function stringifyFunction(fn: (...args: never) => unknown): string;
|
|
/**
|
|
* Replaces `PLACEHOLDER`s with the given replacements.
|
|
*
|
|
* All replacements must be valid JS code.
|
|
*
|
|
* @example
|
|
*
|
|
* ```ts
|
|
* interpolateFunction(() => PLACEHOLDER('test'), {test: 'void 0'});
|
|
* // Equivalent to () => void 0
|
|
* ```
|
|
*
|
|
* @internal
|
|
*/
|
|
export declare const interpolateFunction: <T extends (...args: never[]) => unknown>(fn: T, replacements: Record<string, string>) => T;
|
|
declare global {
|
|
/**
|
|
* Used for interpolation with {@link interpolateFunction}.
|
|
*
|
|
* @internal
|
|
*/
|
|
function PLACEHOLDER<T>(name: string): T;
|
|
}
|
|
//# sourceMappingURL=Function.d.ts.map |