We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.21
github.com
Set type "boolean" in the type annotation of "defineProps" macro, like this:
<script setup lang="ts"> defineProps<{ callable?: boolean }>(); </script>
run npm run build command
npm run build
Component props to be inferred as
props
props: { callable: Boolean, // or {type: Boolean, required: false} }
Component props is inferred as
props: { callable: null, }
The reason being is that I can't use callable shortcut on a component instead of :callable="true".
callable
:callable="true"
This works in development thought (and was hard to spot on production :)))
The text was updated successfully, but these errors were encountered:
Duplicate of #4783
Sorry, something went wrong.
No branches or pull requests
Version
3.2.21
Reproduction link
github.com
Steps to reproduce
Set type "boolean" in the type annotation of "defineProps" macro, like this:
run
npm run build
commandWhat is expected?
Component
props
to be inferred asWhat is actually happening?
Component
props
is inferred asThe reason being is that I can't use
callable
shortcut on a component instead of:callable="true"
.This works in development thought (and was hard to spot on production :)))
The text was updated successfully, but these errors were encountered: