(value: unknown)
| 28 | type ValueType = 'inferred' | 'json' |
| 29 | |
| 30 | const toJson = (value: unknown): string => { |
| 31 | return JSON.stringify( |
| 32 | value, |
| 33 | (_key, entry) => { |
| 34 | if (typeof entry === 'bigint') { |
| 35 | return entry.toString() |
| 36 | } |
| 37 | |
| 38 | return entry |
| 39 | }, |
| 40 | 2, |
| 41 | ) |
| 42 | } |
| 43 | |
| 44 | const serialize = (value: unknown): string => { |
| 45 | if (typeof value === 'bigint') { |
no test coverage detected