UNPKG

@elgato/streamdeck

Version:

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

18 lines (17 loc) 642 B
/** * Defines a Stream Deck action associated with the plugin. * @param definition The definition of the action, e.g. it's identifier, name, etc. * @returns The definition decorator. */ export function action(definition) { const manifestId = definition.UUID; // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/no-unused-vars return function (target, context) { return class extends target { /** * The universally-unique value that identifies the action within the manifest. */ manifestId = manifestId; }; }; }