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

Function isNode

ark/schema/shared/utils.ts:65–68  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

63): value is ArkKinds[kind] => arkKindOf(value) === kind
64
65export const isNode = (value: unknown): value is BaseNode => {
66 const kind = arkKindOf(value)
67 return kind === "root" || kind === "constraint"
68}
69
70export const inProgress: {
71 definitions: number

Callers 15

readArkMemberMethod · 0.90
isAlikeFunction · 0.90
valueFactsFunction · 0.90
walkLiteralFunction · 0.90
deferUnionFunction · 0.90
deferred.tsFile · 0.90
delegateGetFunction · 0.90
collectMethod · 0.90
writeSharedModuleMethod · 0.90
emitMethod · 0.90
writeSharedLiteralMethod · 0.90
emitElementMethod · 0.90

Calls 1

arkKindOfFunction · 0.90

Tested by 1

isAlikeFunction · 0.72