(map: Map<unknown, unknown>)
| 65 | |
| 66 | // highTODO property test |
| 67 | export function stringifyMap(map: Map<unknown, unknown>) { |
| 68 | return JSON.stringify(Object.fromEntries(map)) |
| 69 | } |
| 70 | |
| 71 | export function parseMap<T extends string, U>(rawMap: string) { |
| 72 | const parsed = JSON.parse(rawMap) as Record<T, U> |
nothing calls this directly
no outgoing calls
no test coverage detected