MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / mapRaw

Method mapRaw

src/shared/utils/ObjectParser.ts:132–142  ·  view source on GitHub ↗
(func: ObjectParserMapRawFunc<P>)

Source from the content-addressed store, hash-verified

130 }
131
132 mapRaw(func: ObjectParserMapRawFunc<P>): this {
133 const prop = this._property;
134 if (typeof prop === 'object' && prop !== null && !Array.isArray(prop)) {
135 for (const label in prop) {
136 func(prop[label], label, prop);
137 }
138 } else {
139 this._context.onError(new ObjectParserError(this._stack, 'Property is not a non-array object.'));
140 }
141 return this;
142 }
143
144 array(func: ObjectParserArrayFunc<P>): this {
145 const prop = this._property;

Callers

nothing calls this directly

Calls 1

onErrorMethod · 0.45

Tested by

no test coverage detected