Gavant / glint-template-types

MIT License
18 stars 20 forks source link

Add `{{on}}` helper type definition #93

Open bendemboski opened 1 month ago

bendemboski commented 1 month ago

We had {{on-window}} and {{on-document}}, but not {{on}}. These types could probably be improved by replacing EventTarget with a type argument that can be used to narrow the event map, but I didn't want to take that on right now.