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

Function elided

ark/schema/shared/utils.ts:258–264  ·  view source on GitHub ↗
(nested: string)

Source from the content-addressed store, hash-verified

256const maxNestedLength = 1000
257
258export const elided = (nested: string): string =>
259 (
260 nested.length > maxNestedLength &&
261 withoutHoleNames(nested).length > maxNestedLength
262 ) ?
263 "..."
264 : nested
265
266// prints as printedWithThis unless read while composing another node
267export const printSelfAsThis = <node extends BaseRoot>(

Callers 7

required.tsFile · 0.90
expressionMethod · 0.90
index.tsFile · 0.90
expressionMethod · 0.90
sequence.tsFile · 0.90
optional.tsFile · 0.90
expressionMethod · 0.90

Calls 1

withoutHoleNamesFunction · 0.85

Tested by

no test coverage detected