Skip to content

Commit d61fbef

Browse files
committed
docs(README): options.request.hook’s signature is now (request, endpointOptions)
1 parent b7652ec commit d61fbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const result = await request({
284284
Function
285285
</td>
286286
<td>
287-
Function with the signature <code>hook(endpointOptions, request)</code>, where <code>endpointOptions</code> are the parsed options as returned by <a href="/octokit/endpoint.js#endpointmergeroute-options-or-endpointmergeoptions"><code>endpoint.merge()</code></a>, and <code>request</code> is <a href="/octokit/request.js#request"><code>request()</code></a>. This option works great in conjuction with <a href="/gr2m/before-after-hook">before-after-hook</a>.
287+
Function with the signature <code>hook(request, endpointOptions)</code>, where <code>endpointOptions</code> are the parsed options as returned by <a href="/octokit/endpoint.js#endpointmergeroute-options-or-endpointmergeoptions"><code>endpoint.merge()</code></a>, and <code>request</code> is <a href="/octokit/request.js#request"><code>request()</code></a>. This option works great in conjuction with <a href="/gr2m/before-after-hook">before-after-hook</a>.
288288
</td>
289289
</tr>
290290
<tr>

0 commit comments

Comments
 (0)