Skip to content

Commit

Permalink
docs: use NestedScopedConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx committed Oct 26, 2024
1 parent 2fe6cc3 commit c5b73ca
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,9 @@ You can also use the [`vscode-ext-gen`](https://github.com/antfu/vscode-ext-gen)

```ts
import { defineConfigObject, defineConfigs, reactive, ref } from 'reactive-vscode'
import { type ScopedConfigKeyTypeMap, scopedConfigs } from './generated-meta'
import { type NestedScopedConfigs, scopedConfigs } from './generated-meta'

const { disabled } = defineConfigs<ScopedConfigKeyTypeMap>(
scopedConfigs.scope,
scopedConfigs.defaults,
)

// Or

const config = defineConfigObject<ScopedConfigKeyTypeMap>(
const config = defineConfigObject<NestedScopedConfigs>(
scopedConfigs.scope,
scopedConfigs.defaults,
)
Expand Down

0 comments on commit c5b73ca

Please sign in to comment.