(rawMap: string)
| 69 | } |
| 70 | |
| 71 | export function parseMap<T extends string, U>(rawMap: string) { |
| 72 | const parsed = JSON.parse(rawMap) as Record<T, U> |
| 73 | const entries = Object.entries(parsed) as Array<[T, U]> |
| 74 | return new Map(entries) |
| 75 | } |
| 76 | |
| 77 | // highTODO property test |
| 78 | export function stringifySet(set: Set<unknown> | ReadonlySet<unknown>) { |
no test coverage detected