HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - EventHandler

Home > @rainway/native > EventHandler

EventHandler type

Helper to constrain event handlers

Signature:

export declare type EventHandler<TEvents extends EventProvider<TEvents>, TEventName extends EventName<TEvents>> = TEvents[TEventName];

References: EventProvider, EventName