UNPKG

@elgato/streamdeck

Version:

The official Node.js SDK for creating Stream Deck plugins.

19 lines (18 loc) 662 B
import { actionStore } from "./store.js"; /** * Provides the main bridge between the plugin and the Stream Deck allowing the plugin to send requests and receive events, e.g. when the user presses an action. * @template T The type of settings associated with the action. */ export class SingletonAction { /** * The universally-unique value that identifies the action within the manifest. */ manifestId; /** * Gets the visible actions with the `manifestId` that match this instance's. * @returns The visible actions. */ get actions() { return actionStore.filter((a) => a.manifestId === this.manifestId); } }