vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
157 stars 28 forks source link

Types for `vsc-change` event #19

Closed christian-bromann closed 10 months ago

christian-bromann commented 3 years ago

Thanks for offering this great package!

It would be nice if the library could expose types for the vsc-change event based on given element. Let me know if this makes sense and I could look into adding it.

bendera commented 3 years ago

Thank you for your feedback!

That's a great idea. Honestly, I don't know how could I implement this, so I would appreciate your help.

bendera commented 10 months ago

I've rewritten the event handling part. Most of the components use native events if possible. When a component has a custom event, the event name is unique as contains the component name. Every custom event is exported as TypeScript type. When a component is imported its events will be registered as global events, so will be offered in the IDE autocomplete.