From b10c396f660b15e70ab39e7ccf15a41272bf4c1f Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 5 Oct 2024 14:50:15 +0200 Subject: [PATCH] add rules "isolatedModules": true, "esModuleInterop": true, "skipLibCheck": true, "noImplicitOverride": true, "noImplicitReturns": true, --- src/InconsistentResponseError.ts | 2 +- src/PaginationStream.ts | 2 +- src/PollingTimeoutError.ts | 2 +- src/TransloaditError.ts | 2 +- tsconfig.build.json | 7 ++++++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/InconsistentResponseError.ts b/src/InconsistentResponseError.ts index 3b32efc..fbc5fe9 100644 --- a/src/InconsistentResponseError.ts +++ b/src/InconsistentResponseError.ts @@ -1,3 +1,3 @@ export class InconsistentResponseError extends Error { - name = 'InconsistentResponseError' + override name = 'InconsistentResponseError' } diff --git a/src/PaginationStream.ts b/src/PaginationStream.ts index d153efe..9dad02f 100644 --- a/src/PaginationStream.ts +++ b/src/PaginationStream.ts @@ -15,7 +15,7 @@ export class PaginationStream extends Readable { this._fetchPage = fetchPage } - async _read() { + override async _read() { if (this._items.length > 0) { this._itemsRead++ process.nextTick(() => this.push(this._items.pop())) diff --git a/src/PollingTimeoutError.ts b/src/PollingTimeoutError.ts index 1c87004..016a9b2 100644 --- a/src/PollingTimeoutError.ts +++ b/src/PollingTimeoutError.ts @@ -1,4 +1,4 @@ export class PollingTimeoutError extends Error { - name = 'PollingTimeoutError' + override name = 'PollingTimeoutError' code = 'POLLING_TIMED_OUT' } diff --git a/src/TransloaditError.ts b/src/TransloaditError.ts index dc82a1a..a67897a 100644 --- a/src/TransloaditError.ts +++ b/src/TransloaditError.ts @@ -1,5 +1,5 @@ export class TransloaditError extends Error { - name = 'TransloaditError' + override name = 'TransloaditError' response: { body: unknown } assemblyId?: string transloaditErrorCode?: string diff --git a/tsconfig.build.json b/tsconfig.build.json index 95a5419..67a02f7 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -12,6 +12,11 @@ "strict": true, "exactOptionalPropertyTypes": true, "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": true + "noUncheckedIndexedAccess": true, + "isolatedModules": true, + "esModuleInterop": true, + "skipLibCheck": true, + "noImplicitOverride": true, + "noImplicitReturns": true } }