Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Jul 28, 2020
1 parent 1489353 commit 91ae067
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions source/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ interface RealRequestOptions extends https.RequestOptions {
}

interface PlainOptions extends URLOptions {
/**
Custom request function.
The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper).
@default http.request | https.request
/**
Custom request function.
The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper).
@default http.request | https.request
*/
request?: RequestFunction;

Expand Down
9 changes: 6 additions & 3 deletions source/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ export interface GotPaginate {
})();
```
*/
<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>;
<T, R = unknown>(options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>;

each: (<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>) => AsyncIterableIterator<T>)
& (<T, R = unknown>(options?: OptionsWithPagination<T, R>) => AsyncIterableIterator<T>);

Expand All @@ -132,6 +129,12 @@ export interface GotPaginate {
*/
all: (<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>) => Promise<T[]>)
& (<T, R = unknown>(options?: OptionsWithPagination<T, R>) => Promise<T[]>);

/**
Same as `GotPaginate.each`.
*/
<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>;
<T, R = unknown>(options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>;
}

export interface GotRequestFunction {
Expand Down

0 comments on commit 91ae067

Please sign in to comment.