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

Method toPlainMap

src/parser.ts:235–242  ·  view source on GitHub ↗
(
        object: Map<K, V>,
        keyCtor: Serializable<K>,
        valueCtor: Serializable<V>,
        settings?: ITypedJSONSettings,
    )

Source from the content-addressed store, hash-verified

233 }
234
235 static toPlainMap<K, V>(
236 object: Map<K, V>,
237 keyCtor: Serializable<K>,
238 valueCtor: Serializable<V>,
239 settings?: ITypedJSONSettings,
240 ): IndexedObject | Array<{key: any; value: any}> | undefined {
241 return new TypedJSON(valueCtor, settings).toPlainMap(object, keyCtor);
242 }
243
244 static stringify<T>(
245 object: T,

Callers 1

stringifyAsMapMethod · 0.95

Calls 2

MapTFunction · 0.90
convertSingleValueMethod · 0.45

Tested by

no test coverage detected