(value: unknown)
| 1 | import { parse, stringify } from "comment-json"; |
| 2 | |
| 3 | function isRecord(value: unknown): value is Record<string, unknown> { |
| 4 | return typeof value === "object" && value !== null && !Array.isArray(value); |
| 5 | } |
| 6 | |
| 7 | export function jsoncErrorMessage(error: unknown): string { |
| 8 | return error instanceof Error ? error.message : String(error); |
no outgoing calls
no test coverage detected