(value: unknown, beautify: boolean = false)
| 113 | * @returns The value serialized with `superjson`, as a JSON string. |
| 114 | */ |
| 115 | export const displayValue = (value: unknown, beautify: boolean = false) => { |
| 116 | const { json } = serialize(value) |
| 117 | |
| 118 | return JSON.stringify(json, null, beautify ? 2 : undefined) |
| 119 | } |
| 120 | |
| 121 | // Sorting functions |
| 122 | type SortFn = (a: Query, b: Query) => number |
no outgoing calls
no test coverage detected