MCPcopy Create free account
hub / github.com/glideapps/quicktype / setProperties

Method setProperties

src/Type.ts:273–278  ·  view source on GitHub ↗
(propertyRefs: OrderedMap<string, TypeRef>)

Source from the content-addressed store, hash-verified

271 }
272
273 setProperties(propertyRefs: OrderedMap<string, TypeRef>): void {
274 if (this._propertyRefs !== undefined) {
275 return panic("Can only set class properties once");
276 }
277 this._propertyRefs = propertyRefs;
278 }
279
280 private getPropertyRefs(): OrderedMap<string, TypeRef> {
281 if (this._propertyRefs === undefined) {

Callers 1

makeClassFunction · 0.80

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected