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

Function namedReference

ark/schema/shared/registry.ts:41–42  ·  view source on GitHub ↗
(value: object | symbol)

Source from the content-addressed store, hash-verified

39): RegisteredReference => reference(register(value))
40
41export const namedReference = (value: object | symbol): RegisteredReference =>
42 reference(nameOf(value))
43
44export type RegisteredReference<to extends string = string> =
45 `$ark${"" | NonNegativeIntegerLiteral}.${to}`

Callers 4

morph.tsFile · 0.90
defaultValueSerializerFunction · 0.90
toJsonSchema.tsFile · 0.90
morphs.test.tsFile · 0.90

Calls 2

nameOfFunction · 0.90
referenceFunction · 0.85

Tested by

no test coverage detected