unimport icon indicating copy to clipboard operation
unimport copied to clipboard

Add ExtractPropTypes to exported types in vue preset

Open dochner opened this issue 2 years ago • 1 comments

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

  • [X] Would you be willing to help implement this feature?

dochner avatar Sep 22 '23 14:09 dochner

Sure, PR welcome

antfu avatar Sep 23 '23 06:09 antfu

I think this issue can be closed now.

ilyaliao avatar May 02 '25 08:05 ilyaliao