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

Function compileObjectLiteral

ark/schema/shared/implement.ts:327–332  ·  view source on GitHub ↗
(ctx: object)

Source from the content-addressed store, hash-verified

325}
326
327export const compileObjectLiteral = (ctx: object): string => {
328 let result = "{ "
329 for (const [k, v] of Object.entries(ctx))
330 result += `${k}: ${compileSerializedValue(v)}, `
331 return result + " }"
332}
333
334export type nodeImplementationOf<d extends BaseNodeDeclaration> =
335 nodeImplementationInputOf<d> & {

Callers 2

jsErrorCtxFunction · 0.90
jsErrorCtxFunction · 0.90

Calls 1

compileSerializedValueFunction · 0.90

Tested by

no test coverage detected