Skip to content

Commit 0648a0c

Browse files
committed
@ts-ingore Error contructor
1 parent 816b58f commit 0648a0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/error.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ class Neo4jError extends Error {
7171
* @param {string} code - Optional error code. Will be populated when error originates in the database.
7272
*/
7373
constructor (message: string, code: Neo4jErrorCode, cause?: Error) {
74-
// @ts-expect-error
74+
// eslint-disable-next-line
75+
// @ts-ignore: not available in ES6 yet
7576
super(message, cause != null ? { cause } : undefined)
7677
this.constructor = Neo4jError
7778
// eslint-disable-next-line no-proto

0 commit comments

Comments
 (0)