From 4b34b8b3444734a973c1826eb45ee3a811142f01 Mon Sep 17 00:00:00 2001 From: Simon La Personne Date: Thu, 21 Dec 2017 19:24:32 +0100 Subject: [PATCH] Fixes relationship property name in PathSegment's TS definition Fixes #315 --- test/types/v1/graph-types.test.ts | 2 +- types/v1/graph-types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/types/v1/graph-types.test.ts b/test/types/v1/graph-types.test.ts index 10e2c22b6..418848e74 100644 --- a/test/types/v1/graph-types.test.ts +++ b/test/types/v1/graph-types.test.ts @@ -43,7 +43,7 @@ const rel2Props: object = rel2.properties; const pathSegment1: PathSegment = new PathSegment(node1, rel1, node1); const pathSegment1Start: Node = pathSegment1.start; -const pathSegment1Rel: Relationship = pathSegment1.rel; +const pathSegment1Rel: Relationship = pathSegment1.relationship; const pathSegment1End: Node = pathSegment1.end; const path1: Path = new Path(node1, node1, [pathSegment1]); diff --git a/types/v1/graph-types.d.ts b/types/v1/graph-types.d.ts index a551af315..fd1fa0e51 100644 --- a/types/v1/graph-types.d.ts +++ b/types/v1/graph-types.d.ts @@ -63,7 +63,7 @@ declare class UnboundRelationship { declare class PathSegment { start: Node; - rel: Relationship; + relationship: Relationship; end: Node; constructor(start: Node,