UNPKG

@scalar/api-client

Version:

the open source API testing client

10 lines 499 B
/** * Parses the editor value string in either JSON or YAML format. * Returns the parsed object if valid and an object, otherwise returns null. * * @param value - The input string to parse. * @param language - The language of the input string, either 'json' or 'yaml'. * @returns The parsed object if it's valid, or null. */ export declare const parseEditorObject: (value: string, language: "json" | "yaml") => Record<string, unknown> | null; //# sourceMappingURL=parse-editor-object.d.ts.map