Rocky_Mountain_Vending/.pnpm-store/v10/files/3f/64cec8551dd143e089c12dbf76c61c538390eb4e6151cc1899f9303ab3226eb3da5456b1548568112c53003e3a3392e901943316172b068682f248b2c6bcfe
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

45 lines
1.4 KiB
Text

/**
* @public
*
* A model field with this type means that you may provide a JavaScript
* object in lieu of a JSON string, and it will be serialized to JSON
* automatically before being sent in a request.
*
* For responses, you will receive a "LazyJsonString", which is a boxed String object
* with additional mixin methods.
* To get the string value, call `.toString()`, or to get the JSON object value,
* call `.deserializeJSON()` or parse it yourself.
*/
export type AutomaticJsonStringConversion = Parameters<typeof JSON.stringify>[0] | LazyJsonString;
/**
* @internal
*/
export interface LazyJsonString extends String {
/**
* @returns the JSON parsing of the string value.
*/
deserializeJSON(): any;
/**
* @returns the original string value rather than a JSON.stringified value.
*/
toJSON(): string;
}
/**
* @internal
*
* Extension of the native String class in the previous implementation
* has negative global performance impact on method dispatch for strings,
* and is generally discouraged.
*
* This current implementation may look strange, but is necessary to preserve the interface and
* behavior of extending the String class.
*/
export declare const LazyJsonString: {
new (s: string): LazyJsonString;
(s: string): LazyJsonString;
from(s: any): LazyJsonString;
/**
* @deprecated use #from.
*/
fromObject(s: any): LazyJsonString;
};