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

Function writeObject

ark/type/standalone/combinators.ts:659–659  ·  view source on GitHub ↗
(entries: string[])

Source from the content-addressed store, hash-verified

657 /^[$A-Z_a-z][\w$]*$/.test(key) ? key : JSON.stringify(key)
658
659const writeObject = (entries: string[]): string => `{ ${entries.join(", ")} }`
660
661// a shape with this many keys that may be absent reads each at a site of its own,
662// as a walker's one site costs it far more than it does a compiled shape. So does

Callers 2

writeStructureFunction · 0.85
writeUnionCombinatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected