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

Method parseAsMap

src/parser.ts:166–173  ·  view source on GitHub ↗
(
        object: any,
        keyType: Serializable<K>,
        valueType: Serializable<V>,
        settings?: ITypedJSONSettings,
    )

Source from the content-addressed store, hash-verified

164 }
165
166 static parseAsMap<K, V>(
167 object: any,
168 keyType: Serializable<K>,
169 valueType: Serializable<V>,
170 settings?: ITypedJSONSettings,
171 ): Map<K, V> {
172 return new TypedJSON(valueType, settings).parseAsMap(object, keyType);
173 }
174
175 static toPlainJson<T>(
176 object: T,

Callers

nothing calls this directly

Calls 4

_mapKnownTypesMethod · 0.95
parseToJSObjectFunction · 0.90
MapTFunction · 0.90
convertSingleValueMethod · 0.45

Tested by

no test coverage detected