File tree 2 files changed +20
-6
lines changed
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ import driver, {
27
27
RxResult ,
28
28
Session ,
29
29
ConnectionProvider ,
30
- Record
30
+ Record ,
31
+ types
31
32
} from '../../'
32
33
33
34
const dateTime = DateTime . fromStandardDate ( new Date ( ) )
@@ -72,3 +73,16 @@ const rxTransaction: RxTransaction = dummy
72
73
const rxResult : RxResult = dummy
73
74
74
75
const record : Record = new Record ( [ 'role' ] , [ 124 ] )
76
+
77
+ const instanceOfNode : boolean = dummy instanceof types . Node
78
+ const instanceOfPathSegment : boolean = dummy instanceof types . PathSegment
79
+ const instanceOfPath : boolean = dummy instanceof types . Path
80
+ const instanceOfRelationship : boolean = dummy instanceof types . Relationship
81
+ const instanceOfPoint : boolean = dummy instanceof types . Point
82
+ const instanceOfDate : boolean = dummy instanceof types . Date
83
+ const instanceOfDateTime : boolean = dummy instanceof types . DateTime
84
+ const instanceOfDuration : boolean = dummy instanceof types . Duration
85
+ const instanceOfLocalDateTime : boolean = dummy instanceof types . LocalDateTime
86
+ const instanceOfLocalTime : boolean = dummy instanceof types . LocalTime
87
+ const instanceOfTime : boolean = dummy instanceof types . Time
88
+ const instanceOfInteger : boolean = dummy instanceof types . Integer
Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ declare function driver (
101
101
) : Driver
102
102
103
103
declare const types : {
104
- Node : Node
105
- Relationship : Relationship
106
- UnboundRelationship : UnboundRelationship
107
- PathSegment : PathSegment
108
- Path : Path
104
+ Node : typeof Node
105
+ Relationship : typeof Relationship
106
+ UnboundRelationship : typeof UnboundRelationship
107
+ PathSegment : typeof PathSegment
108
+ Path : typeof Path
109
109
Result : Result
110
110
ResultSummary : ResultSummary
111
111
Record : Record
You can’t perform that action at this time.
0 commit comments