Open SaaS25 opened 2 years ago
Hmm... I did that in https://github.com/ryo-ma/deno-websocket/pull/34 but I was only modifying "on" and "emit" since I rarely use other API parts. I think I can add more typings :eyes:
@ryo-ma can you mark it as duplicate of https://github.com/ryo-ma/deno-websocket/issues/30 please?
Duplicate of #30
Looking at VS code's internals, they do something like this for HTML:
For this class, which extends Deno's
EventEmitter
, something like this seems to do the trick!Not a huge fan of having to wrap the
super
method; I feel like there should be a type-only way to do this? But can't seem to find it :/Originally posted by @cdrini in https://github.com/ryo-ma/deno-websocket/issues/30#issuecomment-932849453