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

Function assertMutable

packages/effect/src/Graph.ts:374–380  ·  view source on GitHub ↗

@internal

(
  graph: Graph<N, E, T> | MutableGraph<N, E, T>
)

Source from the content-addressed store, hash-verified

372
373/** @internal */
374function assertMutable<N, E, T extends Kind = "directed">(
375 graph: Graph<N, E, T> | MutableGraph<N, E, T>
376): asserts graph is MutableGraph<N, E, T> {
377 if (!graph.mutable) {
378 throw new GraphError({ message: "Graph is not mutable" })
379 }
380}
381
382/** @internal */
383const getMutableImplForMutation = <N, E, T extends Kind>(

Callers 4

endMutationFunction · 0.85
removeNodesFunction · 0.85
removeEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected