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

Function throwMismatchedNodeRootError

ark/schema/scope.ts:138–141  ·  view source on GitHub ↗
(expected: NodeKind, actual: NodeKind)

Source from the content-addressed store, hash-verified

136 : undefined
137
138const throwMismatchedNodeRootError = (expected: NodeKind, actual: NodeKind) =>
139 throwParseError(
140 `Node of kind ${actual} is not valid as a ${expected} definition`
141 )
142
143export const writeDuplicateAliasError = <alias extends string>(
144 alias: alias

Callers 1

preparseNodeFunction · 0.85

Calls 1

throwParseErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…