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

Method setValues

src/Type.ts:120–125  ·  view source on GitHub ↗
(valuesRef: TypeRef)

Source from the content-addressed store, hash-verified

118 }
119
120 setValues(valuesRef: TypeRef) {
121 if (this._valuesRef !== undefined) {
122 return panic("Can only set map values once");
123 }
124 this._valuesRef = valuesRef;
125 }
126
127 private getValuesRef(): TypeRef {
128 if (this._valuesRef === undefined) {

Callers 1

makeMapFunction · 0.80

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected