tien commented on code in PR #2599:
URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632121441
##########
gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts:
##########
@@ -73,20 +77,26 @@ export class Vertex<T extends Record<string, any> =
Record<string, any>> extends
}
}
-export class Edge<T extends Record<string, any> = Record<string, any>> extends
Element {
+export class Edge<
+ TOutVertex extends Vertex = Vertex,
Review Comment:
The extends part will restrict the input type to `Vertex`, while the `=
Vertex` part will default that generic to a generic Vertex if no type is
provided.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]