Skip to content

Commit 0ff5661

Browse files
committed
chore: move ts-expect-error directive directly before function
1 parent f65443d commit 0ff5661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ export function throttling(octokit: Octokit, octokitOptions: OctokitOptions) {
187187
}
188188
});
189189

190-
// @ts-expect-error
191190
// The types for `before-after-hook` do not let us only pass through a Promise return value
192191
// the types expect that the function can return either a Promise of the response, or diectly return the response.
193192
// This is due to the fact that `@octokit/request` uses aysnc functions
194193
// Also, since we add the custom `retryCount` property to the request argument, the types are not compatible.
194+
// @ts-expect-error
195195
octokit.hook.wrap("request", wrapRequest.bind(null, state));
196196

197197
return {};

0 commit comments

Comments
 (0)