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

Method _mapKnownTypes

src/parser.ts:565–571  ·  view source on GitHub ↗
(constructors: Array<Constructor<any>>)

Source from the content-addressed store, hash-verified

563 }
564
565 private _mapKnownTypes(constructors: Array<Constructor<any>>) {
566 const map = new Map<string, Constructor<any>>();
567
568 constructors.filter(ctor => ctor).forEach(ctor => map.set(this.nameResolver(ctor), ctor));
569
570 return map;
571 }
572
573 private setSerializationStrategies<T, R = T>(
574 type: Serializable<T>,

Callers 3

parseAsArrayMethod · 0.95
parseAsSetMethod · 0.95
parseAsMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected