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

Function isNode

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

Source from the content-addressed store, hash-verified

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")
68
69export type unwrapDefault<thunkableValue> =
70 thunkableValue extends Thunk<infer returnValue> ? returnValue : thunkableValue

Callers 14

equalsFunction · 0.90
_transformFunction · 0.90
preparseNodeFunction · 0.90
bindReferenceFunction · 0.90
scope.tsFile · 0.90
withIdFunction · 0.90
withMetaFunction · 0.90
intersection.tsFile · 0.90
proto.tsFile · 0.90
mapMethod · 0.90
describeReasonFunction · 0.90
applyMorphsAtPathMethod · 0.90

Calls 1

hasArkKindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…