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

Function isGraph

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

Source from the content-addressed store, hash-verified

11
12/** @internal */
13export const isGraph = <N = unknown, E = unknown, T extends Graph.Kind = Graph.Kind, U = never>(
14 u: U | Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>
15): u is Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T> => hasProperty(u, TypeId)
16
17/** @internal */
18export interface GraphImpl<in out N, in out E, T extends Graph.Kind>

Callers 1

Graph.tsFile · 0.85

Calls 1

hasPropertyFunction · 0.90

Tested by

no test coverage detected