Skip to content

Commit 6e2051b

Browse files
Michelle Tilleygr2m
Michelle Tilley
authored andcommittedOct 31, 2019
fix(typescript): Include done callback in Paginate interface
1 parent 723df79 commit 6e2051b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎scripts/update-endpoints/templates/index.d.ts.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ declare namespace Octokit {
256256
(
257257
Route: string,
258258
EndpointOptions?: Octokit.EndpointOptions,
259-
callback?: (response: Octokit.AnyResponse) => any
259+
callback?: (response: Octokit.AnyResponse, done: () => void) => any
260260
): Promise<any[]>;
261261
(
262262
EndpointOptions: Octokit.EndpointOptions,
263-
callback?: (response: Octokit.AnyResponse) => any
263+
callback?: (response: Octokit.AnyResponse, done: () => void) => any
264264
): Promise<any[]>;
265265
iterator: (
266266
EndpointOptions: Octokit.EndpointOptions

0 commit comments

Comments
 (0)
Please sign in to comment.