Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { FarmOptions } from './types';
import { FarmOptions, PromiseWithCustomMessage } from './types';
export default class Farm {
private _computeWorkerKey;
private _cacheKeys;
@@ -15,7 +15,7 @@ export default class Farm {
private _offset;
private _queue;
constructor(numOfWorkers: number, callback: Function, computeWorkerKey?: FarmOptions['computeWorkerKey']);
doWork(method: string, ...args: Array<any>): Promise<unknown>;
doWork(method: string, ...args: Array<unknown>): PromiseWithCustomMessage<unknown>;
private _getNextTask;
private _process;
private _enqueue;
@@ -24,4 +24,3 @@ export default class Farm {
private _unlock;
private _isLocked;
}
//# sourceMappingURL=Farm.d.ts.map