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

Function liftNodes

client/src/components/types.ts:22–30  ·  view source on GitHub ↗
(connection: Connection<T> | undefined)

Source from the content-addressed store, hash-verified

20}
21
22export function liftNodes<T>(connection: Connection<T> | undefined) {
23 if (!connection) return []
24 const nodes = []
25 for (const edge of liftEdges(connection)) {
26 if (!edge?.node) continue
27 nodes.push(edge.node)
28 }
29 return nodes
30}
31
32type LocationState = {
33 itemTitle: string,

Callers 6

TopicFunction · 0.90
RepoTopicParentTopicsFunction · 0.90
LinkFunction · 0.90
EditRepoLinkParentTopicsFunction · 0.90
TopicSearchPageFunction · 0.90
ViewTopicPageFunction · 0.90

Calls 1

liftEdgesFunction · 0.85

Tested by

no test coverage detected