Only allow primitive JSON for transfer between worker and main worker (#128)
[poolifier.git] / src / pools / pool.ts
index 0c9b232f2bca650dc6f7aed065f15e6e0061a99d..e8f391cc4dc3c6f399194d82d93e92ec00c22dfc 100644 (file)
@@ -1,9 +1,4 @@
-export interface IPool<
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  Data = any,
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  Response = any
-> {
+export interface IPool<Data = unknown, Response = unknown> {
   destroy(): Promise<void>
   execute(data: Data): Promise<Response>
 }