MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / parseMap

Function parseMap

shared/src/utility.ts:71–75  ·  view source on GitHub ↗
(rawMap: string)

Source from the content-addressed store, hash-verified

69}
70
71export 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
78export function stringifySet(set: Set<unknown> | ReadonlySet<unknown>) {

Callers 1

noteEntityToDomainFunction · 0.90

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected