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

Function withoutHoleNames

ark/schema/shared/utils.ts:251–252  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

249// callback, "fn" where it has none, so text hashed for a name drops the rest
250// and names a Type as the program, running its own callbacks, does
251export const withoutHoleNames = (s: string): string =>
252 s.includes(holeNameMarker) ? s.replace(holeNameSuffix, "") : s
253
254// a nested node prints as "..." past this length, so reuse at each level can't
255// double it, whatever a build names its callbacks while it writes text

Callers 3

transformFunction · 0.90
parseDefFunction · 0.90
elidedFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected