MCPcopy Index your code
hub / github.com/glideapps/quicktype / setTypeForPath

Function setTypeForPath

src/JSONSchemaInput.ts:200–202  ·  view source on GitHub ↗
(path: Ref, t: TypeRef)

Source from the content-addressed store, hash-verified

198 let typeForPath = Map<List<any>, TypeRef>();
199
200 function setTypeForPath(path: Ref, t: TypeRef): void {
201 typeForPath = typeForPath.set(makeImmutablePath(path), t);
202 }
203
204 function unifyTypes(typesToUnify: TypeRef[], typeName: string, isInferred: boolean): TypeRef {
205 if (typesToUnify.length === 0) {

Callers 3

makeClassFunction · 0.85
makeMapFunction · 0.85
toTypeFunction · 0.85

Calls 1

makeImmutablePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…