MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
https://matthewwid.github.io/better-sse/
MIT License
559 stars 14 forks source link

Fix event name types #64

Closed Codpoe closed 6 months ago

Codpoe commented 6 months ago

Enhance TS types in TypedEmitter for better type prompts:

image

And in addition to the known event name, other event names can also work normally.