MCPcopy Create free account
hub / github.com/emwalker/digraph / liftEdges

Function liftEdges

client/src/components/types.ts:18–20  ·  view source on GitHub ↗
(connection: Connection<T>)

Source from the content-addressed store, hash-verified

16export type NodeTypeOf<C extends Connection<any>> = NonNullable<EdgeTypeOf<C>>['node']
17
18export function liftEdges<T>(connection: Connection<T>) {
19 return connection.edges || []
20}
21
22export function liftNodes<T>(connection: Connection<T> | undefined) {
23 if (!connection) return []

Callers 1

liftNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected