MCPcopy Create free account
hub / github.com/arktypeio/arktype / pipe

Function pipe

ark/schema/roots/root.ts:539–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537
538 // bound when first read, since it can be detached
539 get pipe(): ((...morphs: Morph[]) => BaseRoot) & {
540 try: (...morphs: Morph[]) => BaseRoot
541 } {
542 return (this.c.pipe ??= Object.assign(this._pipe.bind(this), {
543 try: this.tryPipe.bind(this)
544 }))
545 }
546
547 to(def: unknown): BaseRoot {
548 return this.$.fin(this.toNode(this.$.parseDef(def)))

Callers 3

pipeCalledFunction · 0.90
tTransformMethod · 0.90
stepFunction · 0.50

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected