Skip to content

Commit

Permalink
Sync deno
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmontz committed Jun 20, 2024
1 parent cf58b7f commit 473ec52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/neo4j-driver-deno/lib/core/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Result<R extends RecordShape = RecordShape> implements Promise<QueryResult
summary<T extends NumberOrInteger = Integer> (): Promise<ResultSummary<T>> {
if (this._summary !== null) {
// This type casting is needed since we are defining the number type of
// summary in Result template
// summary in Result template
return Promise.resolve(this._summary as unknown as ResultSummary<T>)
} else if (this._error !== null) {
return Promise.reject(this._error)
Expand All @@ -200,7 +200,7 @@ class Result<R extends RecordShape = RecordShape> implements Promise<QueryResult
o.cancel()
o.subscribe(this._decorateObserver({
// This type casting is needed since we are defining the number type of
// summary in Result template
// summary in Result template
onCompleted: summary => resolve(summary as unknown as ResultSummary<T>),
onError: err => reject(err)
}))
Expand Down

0 comments on commit 473ec52

Please sign in to comment.