Skip to content

Commit d93c8c7

Browse files
authored
docs: update doc sdk.mdx (#5315)
1 parent 7eb509d commit d93c8c7

File tree

1 file changed

+14
-14
lines changed
  • packages/web/src/content/docs

1 file changed

+14
-14
lines changed

packages/web/src/content/docs/sdk.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ This starts both a server and a client
3737

3838
#### Options
3939

40-
| Option | Type | Description | Default |
41-
| --------------- | ---------- | -------------------------------- | ----------------------- |
42-
| `baseUrl` | `string` | URL of the server | `http://localhost:4096` |
43-
| `fetch` | `function` | Custom fetch implementation | `globalThis.fetch` |
44-
| `parseAs` | `string` | Response parsing method | `auto` |
45-
| `responseStyle` | `string` | Return style: `data` or `fields` | `fields` |
46-
| `throwOnError` | `boolean` | Throw errors instead of return | `false` |
40+
| Option | Type | Description | Default |
41+
| ---------- | ------------- | ------------------------------ | ----------- |
42+
| `hostname` | `string` | Server hostname | `127.0.0.1` |
43+
| `port` | `number` | Server port | `4096` |
44+
| `signal` | `AbortSignal` | Abort signal for cancellation | `undefined` |
45+
| `timeout` | `number` | Timeout in ms for server start | `5000` |
46+
| `config` | `Config` | Configuration object | `{}` |
4747

4848
---
4949

@@ -81,13 +81,13 @@ const client = createOpencodeClient({
8181

8282
#### Options
8383

84-
| Option | Type | Description | Default |
85-
| ---------- | ------------- | ------------------------------ | ----------- |
86-
| `hostname` | `string` | Server hostname | `127.0.0.1` |
87-
| `port` | `number` | Server port | `4096` |
88-
| `signal` | `AbortSignal` | Abort signal for cancellation | `undefined` |
89-
| `timeout` | `number` | Timeout in ms for server start | `5000` |
90-
| `config` | `Config` | Configuration object | `{}` |
84+
| Option | Type | Description | Default |
85+
| --------------- | ---------- | -------------------------------- | ----------------------- |
86+
| `baseUrl` | `string` | URL of the server | `http://localhost:4096` |
87+
| `fetch` | `function` | Custom fetch implementation | `globalThis.fetch` |
88+
| `parseAs` | `string` | Response parsing method | `auto` |
89+
| `responseStyle` | `string` | Return style: `data` or `fields` | `fields` |
90+
| `throwOnError` | `boolean` | Throw errors instead of return | `false` |
9191

9292
---
9393

0 commit comments

Comments
 (0)