Feature: Add Generics to Event target #49504
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
This would add the ability to use generics to
type
thetarget
of anevent
.π Motivating Example
This would remove the requirement of having to cast it each time you use it or assigning the target to a variable.
π» Use Cases
With a generic type, you get a cleaner more readable result:
The text was updated successfully, but these errors were encountered: