(connection: Connection<T> | undefined)
| 20 | } |
| 21 | |
| 22 | export 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 | |
| 32 | type LocationState = { |
| 33 | itemTitle: string, |
no test coverage detected