unjs / unimport

Unified utils for auto importing APIs in modules.
MIT License
494 stars 51 forks source link

Add ExtractPropTypes to exported types in vue preset #278

Open dochner opened 10 months ago

dochner commented 10 months ago

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

antfu commented 10 months ago

Sure, PR welcome