core icon indicating copy to clipboard operation
core copied to clipboard

feat(types): add utility types (#2094)

Open wonderful-panda opened this issue 5 years ago • 3 comments

  • ComponentProps: Extract props type of component
  • ComponentListeners: Extract event handlers type of component

wonderful-panda avatar Sep 21 '20 05:09 wonderful-panda

Needs documentation?

bartenra avatar Apr 21 '21 10:04 bartenra

Thank the heavens. 😀 Stoked to see these utilities being considered.

I've extracted the ComponentProps utility from this PR into my project and am using it now. 🙏

ctrlplusb avatar Jul 12 '21 15:07 ctrlplusb

Any updates?

Nisgrak avatar Feb 11 '22 09:02 Nisgrak

Meanwhile this gets merged, this package can be used instead https://github.com/vuejs/language-tools/tree/master/packages/component-type-helpers

unrevised6419 avatar Apr 08 '25 17:04 unrevised6419