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

Function describeFact

ark/type/runtime.ts:1378–1385  ·  view source on GitHub ↗
(fact: HoleFact)

Source from the content-addressed store, hash-verified

1376 )
1377
1378const describeFact = (fact: HoleFact): string =>
1379 typeof fact === "string" ? fact : (
1380 `a function of ${
1381 fact === 0 ? "no parameters"
1382 : fact === 1 ? "1 parameter"
1383 : "2 or more parameters"
1384 }`
1385 )
1386
1387export const checkIdentity = (
1388 value: unknown,

Callers 1

checkFactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected