Skip to content

Commit

Permalink
add rules
Browse files Browse the repository at this point in the history
    "isolatedModules": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "noImplicitOverride": true,
    "noImplicitReturns": true,
  • Loading branch information
mifi committed Oct 5, 2024
1 parent 702d103 commit b10c396
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/InconsistentResponseError.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export class InconsistentResponseError extends Error {
name = 'InconsistentResponseError'
override name = 'InconsistentResponseError'
}
2 changes: 1 addition & 1 deletion src/PaginationStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class PaginationStream<T> extends Readable {
this._fetchPage = fetchPage
}

async _read() {
override async _read() {
if (this._items.length > 0) {
this._itemsRead++
process.nextTick(() => this.push(this._items.pop()))
Expand Down
2 changes: 1 addition & 1 deletion src/PollingTimeoutError.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export class PollingTimeoutError extends Error {
name = 'PollingTimeoutError'
override name = 'PollingTimeoutError'
code = 'POLLING_TIMED_OUT'
}
2 changes: 1 addition & 1 deletion src/TransloaditError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class TransloaditError extends Error {
name = 'TransloaditError'
override name = 'TransloaditError'
response: { body: unknown }
assemblyId?: string
transloaditErrorCode?: string
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
"strict": true,
"exactOptionalPropertyTypes": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true
"noUncheckedIndexedAccess": true,
"isolatedModules": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noImplicitOverride": true,
"noImplicitReturns": true
}
}

0 comments on commit b10c396

Please sign in to comment.