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

Function compileSerializedValue

ark/schema/shared/compile.ts:209–212  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

207}
208
209export const compileSerializedValue = (value: unknown): string =>
210 hasDomain(value, "object") || typeof value === "symbol" ?
211 registeredReference(value)
212 : serializePrimitive(value as never)
213
214export const compileLiteralPropAccess = (
215 key: PropertyKey,

Callers 5

discriminantJsonOfFunction · 0.90
jsIndiscMethod · 0.90
UnitNodeClass · 0.90
serializedKeyFunction · 0.90
compileObjectLiteralFunction · 0.90

Calls 3

hasDomainFunction · 0.90
registeredReferenceFunction · 0.90
serializePrimitiveFunction · 0.90

Tested by

no test coverage detected