build(deps-dev): apply updates
[poolifier.git] / examples / typescript / websocket-server-pool / ws-cluster / src / main.ts
index 762b1c0fffc68b24cfc4f7a4b8296649d1f151ec..16dd38d6a102af0eee66dbb842096195803fdae4 100644 (file)
@@ -1,6 +1,8 @@
 import { dirname, extname, join } from 'node:path'
 import { fileURLToPath } from 'node:url'
-import { FixedClusterPool, availableParallelism } from 'poolifier'
+
+import { availableParallelism, FixedClusterPool } from 'poolifier'
+
 import type { WorkerData, WorkerResponse } from './types.js'
 
 const workerFile = join(
@@ -24,7 +26,7 @@ const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
           }
           return undefined
         })
-        .catch(error => {
+        .catch((error: unknown) => {
           console.error(
             'WebSocket server failed to start in cluster worker:',
             error