Skip to content

Commit 6f1d590

Browse files
adihexpionxzh
authored andcommitted
Fix: Update built-in-types.mdx to reference correct type
The example source code for defineEasyType was referencing toggleType from the previous example. Changed it to use correct example.
1 parent 8049f57 commit 6f1d590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const booleanType = defineEasyType<boolean>({
7070
agree: true,
7171
disagree: false,
7272
}}
73-
valueTypes={[toggleBoolType]}
73+
valueTypes={[booleanType]}
7474
/>
7575
```
7676
[[Source Code]](https://github.com/TexteaInc/json-viewer/blob/main/docs/examples/JsonViewerToggleBoolean.tsx)

0 commit comments

Comments
 (0)