MCPcopy
hub / github.com/arktypeio/arktype / hasArkKind

Function hasArkKind

ark/schema/shared/utils.ts:61–64  ·  view source on GitHub ↗
(
	value: unknown,
	kind: kind
)

Source from the content-addressed store, hash-verified

59export type ArkKind = show<keyof ArkKinds>
60
61export const hasArkKind = <kind extends ArkKind>(
62 value: unknown,
63 kind: kind
64): value is ArkKinds[kind] => (value as any)?.[arkKind] === kind
65
66export const isNode = (value: unknown): value is BaseNode =>
67 hasArkKind(value, "root") || hasArkKind(value, "constraint")

Callers 15

preparseOwnAliasEntryMethod · 0.90
parseObjectFunction · 0.90
maybeParseReferenceFunction · 0.90
testAllConfig.tsFile · 0.90
TraverseResultFunction · 0.90
bindModuleFunction · 0.90
constructorFunction · 0.90
maybeResolveRootFunction · 0.90
maybeResolveFunction · 0.90
exportFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…