Props not detected using defineProps({ ...importedProps })
whitewillow opened this issue · comments
Kenneth Rørstrøm commented
Describe the bug
When defining props with imported props - props are not detected.
To Reproduce
Steps to reproduce the behavior:
- create a ts file with props of type ComponentObjectPropsOptions and export
- in script setup import props and use defineProps({ ...importedProps })
- props.xxx are not detected/undefined/null both in code and template
Expected behavior
Props should be detected
Screenshots/Recording
example of import
Info (please complete the following information):
- OS Linux
- IDE VS Code
- TypeScript Version 4.4.2
- Vue Version 3