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

Function hash

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

Source from the content-addressed store, hash-verified

1209 }
1210
1211 get hash(): string {
1212 return (this.c.hash ??=
1213 isEmptyObject(this.meta) ?
1214 this.innerHash
1215 : keptForJob(this.c, hashJsonOf({ kind: this.kind, ...this.json })))
1216 }
1217
1218 /** its inner JSON before collapsing, with every key it has */
1219 protected get fullJson(): JsonObject {

Callers

nothing calls this directly

Calls 3

isEmptyObjectFunction · 0.90
keptForJobFunction · 0.85
hashJsonOfFunction · 0.85

Tested by

no test coverage detected