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

Function defineRightwardIntersections

ark/sets/implement.ts:36–43  ·  view source on GitHub ↗
(
	kind: kind,
	implementation: RootIntersection<kind, schemaKindRightOf<kind>>
)

Source from the content-addressed store, hash-verified

34}
35
36export const defineRightwardIntersections = <kind extends RootKind>(
37 kind: kind,
38 implementation: RootIntersection<kind, schemaKindRightOf<kind>>
39): { [k in schemaKindRightOf<kind>]: RootIntersection<kind, k> } =>
40 flatMorph(schemaKindsRightOf(kind), (i, kind) => [
41 kind,
42 implementation
43 ]) as never

Callers 5

intersection.tsFile · 0.90
union.tsFile · 0.90
unit.tsFile · 0.90
alias.tsFile · 0.90
morph.tsFile · 0.90

Calls 2

flatMorphFunction · 0.90
schemaKindsRightOfFunction · 0.90

Tested by

no test coverage detected