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

Function isGraph

packages/effect/src/Graph.ts:471–473  ·  view source on GitHub ↗
(
  u: U | Graph<N, E, T> | MutableGraph<N, E, T>
)

Source from the content-addressed store, hash-verified

469 * @since 4.0.0
470 */
471export const isGraph = <N = unknown, E = unknown, T extends Kind = Kind, U = never>(
472 u: U | Graph<N, E, T> | MutableGraph<N, E, T>
473): u is Graph<N, E, T> | MutableGraph<N, E, T> => hasProperty(u, TypeId)
474
475/**
476 * Creates a graph constructor for the specified graph kind.

Callers 2

[Equal.symbol]Function · 0.85
Graph.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected