vuedx / languagetools

A collection of tools for better IDE experience.

Home Page:https://vuedx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Props not detected using defineProps({ ...importedProps })

whitewillow opened this issue · comments

Describe the bug
When defining props with imported props - props are not detected.

To Reproduce
Steps to reproduce the behavior:

  1. create a ts file with props of type ComponentObjectPropsOptions and export
  2. in script setup import props and use defineProps({ ...importedProps })
  3. props.xxx are not detected/undefined/null both in code and template

Expected behavior
Props should be detected

Screenshots/Recording
example of import
vueDX_props

example of props
vueDX_propsoptions

Info (please complete the following information):

  • OS Linux
  • IDE VS Code
  • TypeScript Version 4.4.2
  • Vue Version 3