Skip to content

Commit

Permalink
fix: restore PaginationOptions for url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaulz committed Mar 3, 2020
1 parent 022dc87 commit c81b977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export interface GotRequestMethod {
}

export interface GotPaginate {
<T>(url: URLOrOptions, options?: Omit<Options, keyof PaginationOptions<unknown>> & PaginationOptions<T>): AsyncIterableIterator<T>;
all<T>(url: URLOrOptions, options?: Omit<Options, keyof PaginationOptions<unknown>> & PaginationOptions<T>): Promise<T[]>;
<T>(url: URLOrOptions & PaginationOptions<T>, options?: Omit<Options, keyof PaginationOptions<unknown>> & PaginationOptions<T>): AsyncIterableIterator<T>;
all<T>(url: URLOrOptions & PaginationOptions<T>, options?: Omit<Options, keyof PaginationOptions<unknown>> & PaginationOptions<T>): Promise<T[]>;
}

export interface Got extends Record<HTTPAlias, GotRequestMethod>, GotRequestMethod {
Expand Down

0 comments on commit c81b977

Please sign in to comment.