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

Function parseSet

shared/src/utility.ts:82–85  ·  view source on GitHub ↗
(rawSet: string)

Source from the content-addressed store, hash-verified

80}
81
82export function parseSet<T>(rawSet: string) {
83 const parsed = JSON.parse(rawSet) as T[]
84 return new Set(parsed)
85}
86
87// https://stackoverflow.com/questions/51599481/replacing-property-of-a-typescript-type#comment134810492_72983690
88export type Override<

Callers 1

parseTagsFunction · 0.90

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected