MCPcopy
hub / github.com/arktypeio/arktype / stringifyPath

Function stringifyPath

ark/util/path.ts:64–68  ·  view source on GitHub ↗
(path, ...opts)

Source from the content-addressed store, hash-verified

62}
63
64export const stringifyPath: StringifyPathFn = (path, ...opts) =>
65 path.reduce<string>(
66 (s, k) => appendStringifiedKey(s, k, ...(opts as any)),
67 ""
68 )
69
70export class ReadonlyPath extends ReadonlyArray<PropertyKey> {
71 // alternate strategy for caching since the base object is frozen

Callers 5

typePathToPropStringFunction · 0.90
describeReasonsMethod · 0.90
propStringMethod · 0.90
propStringMethod · 0.90
stringifyMethod · 0.85

Calls 1

appendStringifiedKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…