mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
Fix bad typings left over from the migration
This commit is contained in:
1 parent
7314dc99c8
commit
80e1904175
22 files changed
+93
-117
No files matched your search
@@ -27,7 +27,7 @@ export default class RateLimiter {
|
||||
/**
|
||||
* Callback invoked at most `maxRate` per second on activation.
|
||||
*/
|
||||
action?: Function;
|
||||
action?: () => void;
|
||||
|
||||
private _lastRun = 0;
|
||||
private _runTimeout?: ReturnType<typeof setTimeout>;
|
||||
@@ -43,7 +43,7 @@ export default class RateLimiter {
|
||||
* @param options.action -
|
||||
* Callback invoked at maste `maxRate` per second on activation.
|
||||
*/
|
||||
constructor(options: { maxRate?: number, action?: Function } = {}) {
|
||||
constructor(options: { maxRate?: number, action?: () => void } = {}) {
|
||||
this.maxRate = options.maxRate || 1;
|
||||
this.action = options.action || undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user