MCPcopy Create free account
hub / github.com/JohnWeisz/TypedJSON / parseAsSet

Method parseAsSet

src/parser.ts:158–164  ·  view source on GitHub ↗
(
        object: any,
        elementType: Serializable<T>,
        settings?: ITypedJSONSettings,
    )

Source from the content-addressed store, hash-verified

156 }
157
158 static parseAsSet<T>(
159 object: any,
160 elementType: Serializable<T>,
161 settings?: ITypedJSONSettings,
162 ): Set<T> {
163 return new TypedJSON(elementType, settings).parseAsSet(object);
164 }
165
166 static parseAsMap<K, V>(
167 object: any,

Callers 2

set.spec.tsFile · 0.80
set.spec.tsFile · 0.80

Calls 4

_mapKnownTypesMethod · 0.95
parseToJSObjectFunction · 0.90
SetTFunction · 0.90
convertSingleValueMethod · 0.45

Tested by

no test coverage detected