MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertSameKind

Function assertSameKind

packages/effect/src/Graph.ts:854–858  ·  view source on GitHub ↗
(self: Graph<N, E, Kind>, that: Graph<N, E, Kind>)

Source from the content-addressed store, hash-verified

852
853/** @internal */
854const assertSameKind = <N, E>(self: Graph<N, E, Kind>, that: Graph<N, E, Kind>): void => {
855 if (self.type !== that.type) {
856 throw new GraphError({ message: `Cannot combine ${self.type} and ${that.type} graphs` })
857 }
858}
859
860/**
861 * Composes two graphs, merging nodes by identity.

Callers 1

Graph.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected