@scalar/api-client
Version:
the open source API testing client
10 lines • 486 B
TypeScript
/**
* Stringifies a JavaScript object/document into a formatted string.
* Uses YAML format if language is 'yaml', otherwise uses JSON.
*
* @param document - The JavaScript object to stringify
* @param language - Output language, expected to be either 'json' or 'yaml'
* @returns The stringified document in the specified language
*/
export declare const stringifyDocument: (document: unknown, language: "json" | "yaml") => string;
//# sourceMappingURL=stringify-document.d.ts.map