streamdeck-typescript
Version:
This library will help you build elgato stream deck plugins in typescript
19 lines • 561 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionManager = void 0;
class ActionManager {
constructor(_handler) {
this._handler = _handler;
this._actions = new Map();
}
getAction(context) {
return this._actions.get(context);
}
addOrGetAction(context, action) {
if (!this.getAction(context))
this._actions.set(context, action);
return this.getAction(context);
}
}
exports.ActionManager = ActionManager;
//# sourceMappingURL=action.manager.js.map