When using Vaadin components in TypeScript code, for each component I want to see the available events and their TypeScript types in IDE auto-completion so that I do not have to look this up in the docs or rely on my memory. I also want the TypeScript compiler to automatically verify that I use the correct types when accessing event details in event handlers in TypeScript.
Included components: 15 out of 35 (part 1: #1745)
Acceptance criteria
- [IDE auto-completion in lit-html templates]
- [IDE auto-completion in imperative TypeScript code]
- [build-time type checking in imperative TypeScript code]
General criteria
When using Vaadin components in TypeScript code, for each component I want to see the available events and their TypeScript types in IDE auto-completion so that I do not have to look this up in the docs or rely on my memory. I also want the TypeScript compiler to automatically verify that I use the correct types when accessing event details in event handlers in TypeScript.
Included components: 15 out of 35 (part 1: #1745)
Acceptance criteria
@IDE auto-suggests the same events as are listed in the API docs for the component (e.g. forvaadin-combo-boxthe IDE should auto-suggestchange,custom-value-set,selected-item-changed,value-changed, as listed in the API docs)when defining an inline event handler for an event, the correct type of theeventargument is inferred automaticallyfor non-generic event types (e.g. the type of theinvalid-changedevent onvaadin-text-field)for generic event types (e.g. the type of theselected-item-changedevent onvaadin-combo-box).addEventListener('IDE auto-suggests the same events as are listed in the API docs for the component (e.g. forvaadin-combo-boxthe IDE should auto-suggestchange,custom-value-set,selected-item-changed,value-changed, as listed in the API docs)eventargument is inferred automaticallyinvalid-changedevent onvaadin-text-field)selected-item-changedevent onvaadin-combo-box)addEventListeneris a compilation error (e.g.selected-item-changedonvaadin-text-field)addEventListeneris a compilation error (e.g. declaring the event type as{detail: {value: string}}ininvalid-changedonvaadin-text-field)addEventListeneris a compilation error (e.g. assigningevent.detail.valueto a string variable ininvalid-changedonvaadin-text-field)General criteria