Add types to the Session and Channel classes that add overloads to their EventEmitter-inherited methods which give types to the event arguments.
For example, right now consumers of Channel events such as session-registered and session-deregistered must manually set the type of the event argument session to as Session. This could be enhanced by overloading callbacks with these event names to automatically set the argument types for the user.
Add types to the
Session
andChannel
classes that add overloads to theirEventEmitter
-inherited methods which give types to the event arguments.For example, right now consumers of
Channel
events such assession-registered
andsession-deregistered
must manually set the type of the event argumentsession
to asSession
. This could be enhanced by overloading callbacks with these event names to automatically set the argument types for the user.