Skip to content

Commit d0e0749

Browse files
author
silapersonne
committed
[#315] Fixes PathSegment's relationship property name in Typescript
1 parent 0aaa83a commit d0e0749

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/v1/graph-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class PathSegment {
150150
*/
151151
constructor(start, rel, end) {
152152
this.start = start;
153-
this.rel = rel;
153+
this.relationship = rel;
154154
this.end = end;
155155
}
156156
}

types/v1/graph-types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare class UnboundRelationship {
6363

6464
declare class PathSegment {
6565
start: Node;
66-
rel: Relationship;
66+
relationship: Relationship;
6767
end: Node;
6868

6969
constructor(start: Node,

0 commit comments

Comments
 (0)