From: Jérôme Benoit Date: Wed, 7 Jun 2023 19:13:10 +0000 (+0200) Subject: docs: silence typedoc warnings X-Git-Tag: v2.5.4~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0ea4c06708c761b6b4bd2f33336df61993672a0c;p=poolifier.git docs: silence typedoc warnings Signed-off-by: Jérôme Benoit --- diff --git a/src/index.ts b/src/index.ts index 34989c1f..0d949157 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,7 +39,7 @@ export { type ThreadPoolOptions, type ThreadWorkerWithMessageChannel } from './pools/thread/fixed' -export type { AbstractWorker } from './worker/abstract-worker' +export type { AbstractWorker, TaskPerformance } from './worker/abstract-worker' export { ClusterWorker } from './worker/cluster-worker' export { ThreadWorker } from './worker/thread-worker' export { KillBehaviors } from './worker/worker-options' @@ -53,7 +53,8 @@ export type { export type { Draft, MessageValue, - PromiseResponseWrapper + PromiseResponseWrapper, + WorkerStatistics } from './utility-types' export type { CircularArray } from './circular-array' export type { Queue } from './queue' diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index d37c2157..b7c542aa 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -23,7 +23,7 @@ const DEFAULT_KILL_BEHAVIOR: KillBehavior = KillBehaviors.SOFT /** * Task performance. */ -interface TaskPerformance { +export interface TaskPerformance { timestamp: number waitTime?: number runTime?: number