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

Function writeKey

ark/type/standalone/combinators.ts:656–657  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

654 value === undefined ? "void 0" : js.serialize(value)
655
656const writeKey = (key: string): string =>
657 /^[$A-Z_a-z][\w$]*$/.test(key) ? key : JSON.stringify(key)
658
659const writeObject = (entries: string[]): string => `{ ${entries.join(", ")} }`
660

Callers 3

writeAccessFunction · 0.85
writeStructureFunction · 0.85
writeUnionCombinatorFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected