MCPcopy Create free account
hub / github.com/breck7/scroll / getCatchAllGetter

Method getCatchAllGetter

external/.scrollLibs.js:19194–19199  ·  view source on GitHub ↗
(atomIndex)

Source from the content-addressed store, hash-verified

19192 }`
19193 }
19194 getCatchAllGetter(atomIndex) {
19195 const atomToNativeJavascriptTypeParser = this.getAtomConstructor().parserFunctionName
19196 return `get ${this.atomTypeId}() {
19197 return ${atomToNativeJavascriptTypeParser ? `this.getAtomsFrom(${atomIndex}).map(val => ${atomToNativeJavascriptTypeParser}(val))` : `this.getAtomsFrom(${atomIndex})`}
19198 }`
19199 }
19200 // `this.getAtomsFrom(${requireds.length + 1})`
19201 // todo: cleanup typings. todo: remove this hidden logic. have a "baseType" property?
19202 getAtomConstructor() {

Callers 1

Calls 1

getAtomConstructorMethod · 0.95

Tested by

no test coverage detected