qyu
Version:
A general-purpose asynchronous job queue for Node.js
30 lines • 1.09 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = void 0;
const QyuBase_js_1 = require("./QyuBase.js");
const QyuInvokable = class Qyu extends QyuBase_js_1.QyuBase {
constructor(opts = {}) {
super(opts);
const qyuAsAny = this;
const selfInvokableQyu = new Proxy(((input) => {
return qyuAsAny.add(input);
}), {
get: (_target, prop, _receiver) => {
return qyuAsAny[prop];
},
set: (_obj, prop, value) => {
qyuAsAny[prop] = value;
return true;
},
});
return selfInvokableQyu;
}
};
exports.default = QyuInvokable;
/*
TODOs:
- Go through entire `README.md`, most importantly probably convert all imports from `require`s to `import` statements
- Make all nullable numeric options to be defaulted to `Infinity` to normalize all operations on them and their type checks
- Make up and extract out subtypes of the QyuError for each possible error
*/
//# sourceMappingURL=Qyu.js.map
;