Skip to content
New issue

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

Add ExtractPropTypes to exported types in vue preset #278

Open
1 task done
dochner opened this issue Sep 22, 2023 · 1 comment
Open
1 task done

Add ExtractPropTypes to exported types in vue preset #278

dochner opened this issue Sep 22, 2023 · 1 comment

Comments

@dochner
Copy link
Contributor

dochner commented Sep 22, 2023

Describe the feature

Looking into the exported types of Vue, I noticed the absence of the 'ExportPropTypes' export. Is there a specific reason for not including this or other types? Should I manually add an import for this type from Vue in my 'unplugin-auto-import' configuration instead?

src/presets/vue.ts

  // types
  ...[
    'Component',
    'ComponentPublicInstance',
    'ComputedRef',
    'InjectionKey',
    'PropType',
    'Ref',
    'VNode',
    'WritableComputedRef'
  ].map(name => ({ name, type: true }))

Thanks in advance!

Additional information

  • Would you be willing to help implement this feature?
@antfu
Copy link
Member

antfu commented Sep 23, 2023

Sure, PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants