-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,6 +187,11 @@ export function throttling(octokit: Octokit, octokitOptions: OctokitOptions) { | |
} | ||
}); | ||
|
||
// @ts-expect-error | ||
Check failure on line 190 in src/index.ts GitHub Actions / test
|
||
// The types for `before-after-hook` do not let us only pass through a Promise return value | ||
// the types expect that the function can return either a Promise of the response, or diectly return the response. | ||
// This is due to the fact that `@octokit/request` uses aysnc functions | ||
// Also, since we add the custom `retryCount` property to the request argument, the types are not compatible. | ||
octokit.hook.wrap("request", wrapRequest.bind(null, state)); | ||
|
||
return {}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters