X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Fpools%2Fselection-strategies%2Fabstract-worker-choice-strategy.ts;h=5b4a2fb5f777b4f8b5238a0be7b578dd9b3924ce;hb=95c83464bb1fab234d1c41204f98defcd01c789f;hp=aa370fe433e74065e4155d8612499abef5ec59fb;hpb=9cd39dd47830f0923cd3ebf53b709bf7fb07e788;p=poolifier.git diff --git a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts index aa370fe4..5b4a2fb5 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -15,9 +15,9 @@ import type { */ export abstract class AbstractWorkerChoiceStrategy< Worker extends IPoolWorker, - Data, - Response -> implements IWorkerChoiceStrategy { + Data = unknown, + Response = unknown +> implements IWorkerChoiceStrategy { /** {@inheritDoc} */ public readonly isDynamicPool: boolean /** {@inheritDoc} */ @@ -32,7 +32,7 @@ export abstract class AbstractWorkerChoiceStrategy< * @param pool - The pool instance. */ public constructor ( - protected readonly pool: IPoolInternal + public readonly pool: IPoolInternal ) { this.isDynamicPool = this.pool.type === PoolType.DYNAMIC this.choose.bind(this)