@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
16 lines (15 loc) • 640 B
TypeScript
import type { chococake } from '../organization/really_any';
/**
* Function `asSerializable` will convert values which are not serializable to serializable values
* It walks deeply through the object and converts all values
*
* For example:
* - `Date` objects will be converted to string
*
* Note: There are 2 similar functions
* - `valueToString` converts value to string for LLM models as human-readable string
* - `asSerializable` converts value to string to preserve full information to be able to convert it back
*
* @private Internal helper function
*/
export declare function asSerializable(value: chococake): chococake;