Skip to content

Typed event listeners#116

Open
Minding000 wants to merge 2 commits into
mpetazzoni:mainfrom
Minding000:typed-event-listeners
Open

Typed event listeners#116
Minding000 wants to merge 2 commits into
mpetazzoni:mainfrom
Minding000:typed-event-listeners

Conversation

@Minding000

@Minding000 Minding000 commented Jun 29, 2026

Copy link
Copy Markdown

Issues

  • The type definitions don't define the type of the event listener callbacks

Changes

  • Added types for each event and event listener
  • Removed unused onload property type

Notes

Supporting TypeScript would be much easier if the library itself were to be written in TypeScript with modern syntax such as classes

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant