From 0ea4c06708c761b6b4bd2f33336df61993672a0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 7 Jun 2023 21:13:10 +0200 Subject: [PATCH] docs: silence typedoc warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/index.ts | 5 +++-- src/worker/abstract-worker.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.34.1