@elgato/streamdeck
Version:
The official Node.js SDK for creating Stream Deck plugins.
17 lines (16 loc) • 377 B
JavaScript
/**
* Provides information for events received from Stream Deck.
*/
export class Event {
/**
* Event that occurred.
*/
type;
/**
* Initializes a new instance of the {@link Event} class.
* @param source Source of the event, i.e. the original message from Stream Deck.
*/
constructor(source) {
this.type = source.event;
}
}