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

Function throwMismatchedNodeRootError

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

Source from the content-addressed store, hash-verified

164type CachedResolution = BaseParseContext | BaseRoot | GenericRoot
165
166const throwMismatchedNodeRootError = (expected: NodeKind, actual: NodeKind) =>
167 throwParseError(
168 `Node of kind ${actual} is not valid as a ${expected} definition`
169 )
170
171export const writeDuplicateAliasError = <alias extends string>(
172 alias: alias

Callers 1

scope.tsFile · 0.85

Calls 1

throwParseErrorFunction · 0.90

Tested by

no test coverage detected