Skip to content

Commit 204e9b1

Browse files
authored
docs: fix incorrect adapter options key in request (#85)
The current docs are mentioning updating adapter options on a request via `adapterOptions` key. However, according to https://github.com/BetterTyped/hyper-fetch/blob/c1a40f583c5b2322e2c0d9a039b256e3adb2652c/packages/core/src/request/request.types.ts#L66 and https://github.com/BetterTyped/hyper-fetch/blob/c1a40f583c5b2322e2c0d9a039b256e3adb2652c/packages/core/src/request/request.ts#L59 this key is called only `options`.
1 parent 39af03a commit 204e9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/documentation/02-core/request.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Add them by:
104104
```ts
105105
const request = client.createRequest()({
106106
endpoint: "/some-endpoint",
107-
adapterOptions: { timeout: 1000, withCredentials: true },
107+
options: { timeout: 1000, withCredentials: true },
108108
});
109109
```
110110

0 commit comments

Comments
 (0)