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

Function metaJsonOf

ark/schema/shared/implement.ts:266–272  ·  view source on GitHub ↗
(meta: ArkEnv.meta)

Source from the content-addressed store, hash-verified

264}
265
266export const metaJsonOf = (meta: ArkEnv.meta): JsonObject =>
267 flatMorph(meta, (k, v) => [
268 k,
269 k === "examples" ?
270 (v as unknown[]).map(defaultValueSerializer)
271 : defaultValueSerializer(v)
272 ])
273
274export type NodeKeyImplementation<
275 d extends BaseNodeDeclaration,

Callers 2

metaJsonFunction · 0.90
createNodeFunction · 0.90

Calls 3

flatMorphFunction · 0.90
defaultValueSerializerFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected