Skip to content

Commit 2ecef6d

Browse files
adihexpionxzh
authored andcommitted
Update built-in-types.mdx
Ignore previous commit.
1 parent 6f1d590 commit 2ecef6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/how-to/built-in-types.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const toggleBoolType = defineDataType<boolean>({
5656
```tsx
5757
import { defineEasyType, booleanType } from '@textea/json-viewer'
5858

59-
const booleanType = defineEasyType<boolean>({
59+
const toggleBoolType = defineEasyType<boolean>({
6060
...booleanType,
6161
type: 'bool',
6262
colorKey: 'base0E',
@@ -70,7 +70,7 @@ const booleanType = defineEasyType<boolean>({
7070
agree: true,
7171
disagree: false,
7272
}}
73-
valueTypes={[booleanType]}
73+
valueTypes={[toggleBoolType]}
7474
/>
7575
```
7676
[[Source Code]](https://github.com/TexteaInc/json-viewer/blob/main/docs/examples/JsonViewerToggleBoolean.tsx)

0 commit comments

Comments
 (0)