Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.cooldownTrigger = cooldownTrigger;
|
||||
function cooldownTrigger(timeMs) {
|
||||
return async function* () {
|
||||
while (true) {
|
||||
await new Promise((resolve) => setTimeout(resolve, timeMs));
|
||||
yield;
|
||||
}
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=cooldownTrigger.js.map
|
||||
Reference in New Issue
Block a user