Only allow primitive JSON for transfer between worker and main worker (#128)
[poolifier.git] / src / worker / abstract-worker.ts
index 5e223623225f1084d2d0e51121fa0ae4c4ee54bd..4b68d8975a3cc21306a1d4ff19ab9592b5c48297 100644 (file)
@@ -4,10 +4,8 @@ import type { WorkerOptions } from './worker-options'
 
 export abstract class AbstractWorker<
   MainWorker,
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  Data = any,
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  Response = any
+  Data = unknown,
+  Response = unknown
 > extends AsyncResource {
   protected readonly maxInactiveTime: number
   protected readonly async: boolean