From 71ebe93bc57165070056097e96efc45b15a580e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 12 Apr 2023 11:17:09 +0200 Subject: [PATCH] docs: enhance documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 1 + src/pools/pool.ts | 1 + src/pools/selection-strategies/selection-strategies-types.ts | 2 ++ src/utility-types.ts | 1 + 4 files changed, 5 insertions(+) diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 9f7813e7..3be40e6d 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -506,6 +506,7 @@ export abstract class AbstractPool< * Gets the given worker its tasks usage in the pool. * * @param worker - The worker. + * @throws {@link Error} if the worker is not found in the pool worker nodes. * @returns The worker tasks usage. */ private getWorkerTasksUsage (worker: Worker): TasksUsage | undefined { diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 6b957c37..5c90ff77 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -16,6 +16,7 @@ import type { * Pool types. * * @enum + * @internal */ export enum PoolType { /** diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index 7fbe40f2..065b310f 100644 --- a/src/pools/selection-strategies/selection-strategies-types.ts +++ b/src/pools/selection-strategies/selection-strategies-types.ts @@ -41,6 +41,8 @@ export interface WorkerChoiceStrategyOptions { /** * Pool worker tasks usage statistics requirements. + * + * @internal */ export interface RequiredStatistics { /** diff --git a/src/utility-types.ts b/src/utility-types.ts index 3a454f3e..e48ded53 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -13,6 +13,7 @@ export type Draft = { -readonly [P in keyof T]?: T[P] } * * @typeParam Data - Type of data sent to the worker. This can only be serializable data. * @typeParam MainWorker - Type of main worker. + * @internal */ export interface MessageValue< Data = unknown, -- 2.34.1