Skip to content

Commit 47f5875

Browse files
slapersonnelutovich
authored andcommitted
Fixes relationship property name in PathSegment's TS definition
Fixes #315
1 parent b1c9d50 commit 47f5875

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/types/v1/graph-types.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const rel2Props: object = rel2.properties;
4343

4444
const pathSegment1: PathSegment = new PathSegment(node1, rel1, node1);
4545
const pathSegment1Start: Node = pathSegment1.start;
46-
const pathSegment1Rel: Relationship = pathSegment1.rel;
46+
const pathSegment1Rel: Relationship = pathSegment1.relationship;
4747
const pathSegment1End: Node = pathSegment1.end;
4848

4949
const path1: Path = new Path(node1, node1, [pathSegment1]);

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)