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

Function assertIsClass

src/JSONSchemaInput.ts:133–138  ·  view source on GitHub ↗
(t: Type)

Source from the content-addressed store, hash-verified

131}
132
133function assertIsClass(t: Type): ClassType {
134 if (!(t instanceof ClassType)) {
135 return panic("Supposed class type is not a class type");
136 }
137 return t;
138}
139
140function makeImmutablePath(path: Ref): List<any> {
141 return path.map(pe => fromJS(pe));

Callers 2

makeClassMethod · 0.85
makeClassFunction · 0.85

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…