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

Method stringifyAsMap

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

Source from the content-addressed store, hash-verified

302 }
303
304 static stringifyAsMap<K, V>(
305 object: Map<K, V>,
306 keyCtor: Serializable<K>,
307 valueCtor: Serializable<V>,
308 settings?: ITypedJSONSettings,
309 ): string {
310 return new TypedJSON(valueCtor, settings).stringifyAsMap(object, keyCtor);
311 }
312
313 static setGlobalConfig(config: ITypedJSONSettings) {
314 Object.assign(this._globalConfig, config);

Callers

nothing calls this directly

Calls 2

toPlainMapMethod · 0.95
stringifyMethod · 0.80

Tested by

no test coverage detected