Skip to content

Commit 81f0b71

Browse files
committed
apply linting
1 parent 1a5babe commit 81f0b71

12 files changed

+233
-218
lines changed

src/ApiError.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ export class ApiError extends Error {
1313
// there might not be an error code (or message) if the server didn't respond with any JSON response at all
1414
// e.g. if there was a 500 in the HTTP reverse proxy
1515
code?: string
16+
1617
rawMessage?: string
18+
1719
assemblySslUrl?: string
20+
1821
assemblyId?: string
1922

2023
override cause?: RequestError | undefined

src/InconsistentResponseError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export class InconsistentResponseError extends Error {
1+
export default class InconsistentResponseError extends Error {
22
override name = 'InconsistentResponseError'
33
}

src/PaginationStream.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { Readable } from 'stream'
22
import { PaginationList } from './Transloadit'
33

4+
// eslint-disable-next-line no-unused-vars
45
type FetchPage<T> = (pageno: number) => PaginationList<T> | PromiseLike<PaginationList<T>>
56

6-
export class PaginationStream<T> extends Readable {
7+
export default class PaginationStream<T> extends Readable {
78
private _fetchPage: FetchPage<T>
9+
810
private _nitems?: number
11+
912
private _pageno = 0
13+
1014
private _items: T[] = []
15+
1116
private _itemsRead = 0
1217

1318
constructor(fetchPage: FetchPage<T>) {

src/PollingTimeoutError.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export class PollingTimeoutError extends Error {
1+
export default class PollingTimeoutError extends Error {
22
override name = 'PollingTimeoutError'
3+
34
code = 'POLLING_TIMED_OUT'
45
}

0 commit comments

Comments
 (0)