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

Function schemaKindsRightOf

ark/schema/shared/implement.ts:224–227  ·  view source on GitHub ↗
(
	kind: kind
)

Source from the content-addressed store, hash-verified

222export type kindRightOf<kind extends NodeKind> = RightsByKind[kind]
223
224export const schemaKindsRightOf = <kind extends RootKind>(
225 kind: kind
226): schemaKindRightOf<kind>[] =>
227 rootKinds.slice(precedenceOfKind(kind) + 1) as never
228
229export const unionChildKinds = /* @__PURE__ */ (() =>
230 [...schemaKindsRightOf("union"), "alias"] as const)()

Callers 2

implement.tsFile · 0.85

Calls 1

precedenceOfKindFunction · 0.85

Tested by

no test coverage detected