Skip to content

Commit

Permalink
docs: fix return value of rsbuild.rspackConfigs()
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Feb 1, 2025
1 parent af0a6c7 commit 51bab40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/api/javascript-api/instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ function InitConfigs(): Promise<{
- **Example:**

```ts
const { rspackConfigs } = await rsbuild.initConfigs();
const rspackConfigs = await rsbuild.initConfigs();

console.log(rspackConfigs);
```
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/api/javascript-api/instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ function InitConfigs(): Promise<{
- **示例:**

```ts
const { rspackConfigs } = await rsbuild.initConfigs();
const rspackConfigs = await rsbuild.initConfigs();

console.log(rspackConfigs);
```
Expand Down

0 comments on commit 51bab40

Please sign in to comment.