test: fix TS type definitions
[poolifier.git] / examples / typescript / pool.ts
index 57898d98a9d53a8c89c3d774847e9cae694a53fe..144d55002bd048ea865365cb6696cdb887745230 100644 (file)
@@ -12,7 +12,7 @@ const workerFile = join(
   `worker${extname(fileURLToPath(import.meta.url))}`
 )
 
-export const fixedPool = new FixedThreadPool<MyData, Promise<MyResponse>>(
+export const fixedPool = new FixedThreadPool<MyData, MyResponse>(
   availableParallelism(),
   workerFile,
   {
@@ -25,7 +25,7 @@ export const fixedPool = new FixedThreadPool<MyData, Promise<MyResponse>>(
   }
 )
 
-export const dynamicPool = new DynamicThreadPool<MyData, Promise<MyResponse>>(
+export const dynamicPool = new DynamicThreadPool<MyData, MyResponse>(
   Math.floor(availableParallelism() / 2),
   availableParallelism(),
   workerFile,