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

Function hasArkKind

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

Source from the content-addressed store, hash-verified

58export type ArkKind = show<keyof ArkKinds>
59
60export const hasArkKind = <kind extends ArkKind>(
61 value: unknown,
62 kind: kind
63): value is ArkKinds[kind] => arkKindOf(value) === kind
64
65export const isNode = (value: unknown): value is BaseNode => {
66 const kind = arkKindOf(value)

Callers 15

negatives.tsFile · 0.90
scratch.tsFile · 0.90
buildMorphArbitraryFunction · 0.90
hasFiniteMemberFunction · 0.90
isSpreadableObjectDefFunction · 0.90
recordDroppedNarrowsFunction · 0.90
scopeOfModuleFunction · 0.90
recordSpreadDropFunction · 0.90
defDropsUserPredicateFunction · 0.90
walkDefinitionFunction · 0.90
directFunction · 0.90
evalDefInScopeFunction · 0.90

Calls 1

arkKindOfFunction · 0.90

Tested by 6

isErrorsFunction · 0.72
returnsForeignErrorsFunction · 0.72
buildPerturbedFunction · 0.72
isHolderFunction · 0.72
statusesInFunction · 0.72
keywordsOfFunction · 0.72