@elgato-stream-deck/tcp
Version:
An npm module for interfacing with select Elgato Stream Deck devices in node over tcp
23 lines • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QueuedCommand = void 0;
class QueuedCommand {
promise;
commandType;
constructor(commandType) {
this.commandType = commandType;
this.promise = new Promise((resolve, reject) => {
this.resolve = resolve;
this.reject = reject;
});
}
resolve(_res) {
throw new Error('No promise to resolve');
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
reject(_res) {
throw new Error('No promise to reject');
}
}
exports.QueuedCommand = QueuedCommand;
//# sourceMappingURL=util.js.map