Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion packages/neo4j-driver/test/types/export.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import driver, {
RxResult,
Session,
ConnectionProvider,
Record
Record,
types
} from '../../'

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

const record: Record = new Record(['role'], [124])

dummy instanceof types.Node
dummy instanceof types.PathSegment
dummy instanceof types.Path
dummy instanceof types.Relationship
dummy instanceof types.Point
dummy instanceof types.Date
dummy instanceof types.DateTime
dummy instanceof types.Duration
dummy instanceof types.LocalDateTime
dummy instanceof types.LocalTime
dummy instanceof types.Time
dummy instanceof types.Integer
10 changes: 5 additions & 5 deletions packages/neo4j-driver/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ declare function driver(
): Driver

declare const types: {
Node: Node
Relationship: Relationship
UnboundRelationship: UnboundRelationship
PathSegment: PathSegment
Path: Path
Node: typeof Node
Relationship: typeof Relationship
UnboundRelationship: typeof UnboundRelationship
PathSegment: typeof PathSegment
Path: typeof Path
Result: Result
ResultSummary: ResultSummary
Record: Record
Expand Down