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

Function description

ark/schema/node.ts:1044–1053  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1042 }
1043
1044 get description(): string {
1045 if (this.c.description !== undefined) return this.c.description
1046 if (this.meta?.description !== undefined)
1047 return (this.c.description = this.meta.description)
1048 const configured = this.$.cfg[this.kind].description
1049 return (this.c.description =
1050 typeof configured === "string" ? configured : (
1051 composing(() => configured(this as never))
1052 ))
1053 }
1054
1055 // we don't cache this currently since it can be updated once a scope finishes
1056 // resolving cyclic references, although it may be possible to ensure it is cached safely

Callers

nothing calls this directly

Calls 2

composingFunction · 0.90
configuredFunction · 0.50

Tested by

no test coverage detected