Skip to content

Commit e373658

Browse files
authored
Fix exported typescript types (#941)
1 parent 1cc610a commit e373658

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

packages/neo4j-driver/test/types/export.test.ts

+15-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ import driver, {
2525
RxResult,
2626
Session,
2727
ConnectionProvider,
28-
Record
28+
Record,
29+
types
2930
} from '../../'
3031

3132
const dateTime = DateTime.fromStandardDate(new Date())
@@ -70,3 +71,16 @@ const rxTransaction: RxTransaction = dummy
7071
const rxResult: RxResult = dummy
7172

7273
const record: Record = new Record(['role'], [124])
74+
75+
dummy instanceof types.Node
76+
dummy instanceof types.PathSegment
77+
dummy instanceof types.Path
78+
dummy instanceof types.Relationship
79+
dummy instanceof types.Point
80+
dummy instanceof types.Date
81+
dummy instanceof types.DateTime
82+
dummy instanceof types.Duration
83+
dummy instanceof types.LocalDateTime
84+
dummy instanceof types.LocalTime
85+
dummy instanceof types.Time
86+
dummy instanceof types.Integer

packages/neo4j-driver/types/index.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ declare function driver(
9898
): Driver
9999

100100
declare const types: {
101-
Node: Node
102-
Relationship: Relationship
103-
UnboundRelationship: UnboundRelationship
104-
PathSegment: PathSegment
105-
Path: Path
101+
Node: typeof Node
102+
Relationship: typeof Relationship
103+
UnboundRelationship: typeof UnboundRelationship
104+
PathSegment: typeof PathSegment
105+
Path: typeof Path
106106
Result: Result
107107
ResultSummary: ResultSummary
108108
Record: Record

0 commit comments

Comments
 (0)