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

Method typedContent

external/.scrollLibs.js:18530–18537  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18528 return this.listDelimiter ? this.content.split(this.listDelimiter) : super.list
18529 }
18530 get typedContent() {
18531 // todo: probably a better way to do this, perhaps by defining a atomDelimiter at the particle level
18532 // todo: this currently parse anything other than string types
18533 if (this.listDelimiter) return this.content.split(this.listDelimiter)
18534 const atoms = this.parsedAtoms
18535 if (atoms.length === 2) return atoms[1].parsed
18536 return this.content
18537 }
18538 get typedTuple() {
18539 const key = this.cue
18540 if (this.subparticlesAreTextBlob) return [key, this.subparticlesToString()]

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected