Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 704c4fb

Browse files
authored
fix(typescript): inconsistencies in parameter names (#289)
1 parent 797e924 commit 704c4fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface PaginateInterface {
6969
/**
7070
* Paginate a request using endpoint options and map each response to a custom array
7171
*
72-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
72+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
7373
* @param {function} mapFn Optional method to map each response to a custom array
7474
*/
7575
<T, R>(
@@ -80,7 +80,7 @@ export interface PaginateInterface {
8080
/**
8181
* Paginate a request using endpoint options
8282
*
83-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
83+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
8484
*/
8585
<T>(options: OctokitTypes.EndpointOptions): Promise<PaginationResults<T>>;
8686

@@ -195,9 +195,9 @@ export interface PaginateInterface {
195195
* Get an async iterator to paginate a request using endpoint options
196196
*
197197
* @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
198-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
198+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
199199
*/
200-
<T>(EndpointOptions: OctokitTypes.EndpointOptions): AsyncIterableIterator<
200+
<T>(options: OctokitTypes.EndpointOptions): AsyncIterableIterator<
201201
OctokitTypes.OctokitResponse<PaginationResults<T>>
202202
>;
203203

@@ -260,7 +260,7 @@ export interface ComposePaginateInterface {
260260
* Paginate a request using endpoint options and map each response to a custom array
261261
*
262262
* @param {object} octokit Octokit instance
263-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
263+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
264264
* @param {function} mapFn Optional method to map each response to a custom array
265265
*/
266266
<T, R>(
@@ -273,7 +273,7 @@ export interface ComposePaginateInterface {
273273
* Paginate a request using endpoint options
274274
*
275275
* @param {object} octokit Octokit instance
276-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
276+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
277277
*/
278278
<T>(octokit: Octokit, options: OctokitTypes.EndpointOptions): Promise<
279279
PaginationResults<T>
@@ -406,11 +406,11 @@ export interface ComposePaginateInterface {
406406
* @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
407407
*
408408
* @param {object} octokit Octokit instance
409-
* @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
409+
* @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
410410
*/
411411
<T>(
412412
octokit: Octokit,
413-
EndpointOptions: OctokitTypes.EndpointOptions
413+
options: OctokitTypes.EndpointOptions
414414
): AsyncIterableIterator<
415415
OctokitTypes.OctokitResponse<PaginationResults<T>>
416416
>;

0 commit comments

Comments
 (0)