Skip to content

Commit 8419b88

Browse files
Resolved review comments on middlewareOptions instead of middlewareOption
1 parent 89a2e75 commit 8419b88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/OtherAPIs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ try {
7474
}
7575
```
7676

77-
## MIDDLEWAREOPTION
77+
## MIDDLEWAREOPTIONS
7878

79-
You can override the client middleware behavior by setting per request middleware options. Use the `.middlewareOption()` request builder method to add custom middleware behavior for a specific request. The `middlewareOption()` method takes an array of strongly typed middleware options. These middleware options are an implementation of the [MiddlewareOption](../src/middleware/option/IMiddlewareOption.ts) interface.
79+
You can override the client middleware behavior by setting per request middleware options. Use the `.middlewareOptions()` request builder method to add custom middleware behavior for a specific request. The `middlewareOptions()` method takes an array of strongly typed middleware options. These middleware options are an implementation of the [MiddlewareOption](../src/middleware/option/IMiddlewareOption.ts) interface.
8080

8181
```typescript
8282
try {
83-
let res = await client.api("/me/messages").middlewareOption([
83+
let res = await client.api("/me/messages").middlewareOptions([
8484
new RetryHandlerOption(5000)
8585
]).get();
8686
console.log(res);

0 commit comments

Comments
 (0)