( graph: Graph<N, E, T> | MutableGraph<N, E, T>, evaluate: () => A )
| 393 | |
| 394 | /** @internal */ |
| 395 | const withMutationGuard = <N, E, T extends Kind, A>( |
| 396 | graph: Graph<N, E, T> | MutableGraph<N, E, T>, |
| 397 | evaluate: () => A |
| 398 | ): A => graph.mutable ? internal.withTransformation(graph, evaluate) : evaluate() |
| 399 | |
| 400 | // ============================================================================= |
| 401 | // Constructors |
no test coverage detected