Skip to content

Commit

Permalink
docs: fix description of boolean (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan committed May 15, 2023
1 parent 76ccdac commit 4705bf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/macros/define-prop.md
Expand Up @@ -97,7 +97,8 @@ count.value
// Declare prop of TS type boolean with default value
const disabled = defineProp<boolean>('disabled', { default: true })
// ^? type: boolean
disabled.value
// ^? type: boolean
</script>
```

Expand Down Expand Up @@ -150,6 +151,7 @@ count.value
// Declare prop of TS type boolean with default value
const disabled = defineProp<boolean>(true)
// ^? type: boolean
disabled.value
// ^? type: boolean
</script>
```

0 comments on commit 4705bf7

Please sign in to comment.