build(deps-dev): apply updates
[poolifier.git] / examples / typescript / http-server-pool / express-hybrid / src / main.ts
index e339f83a276893e360140c77c40f510950e9406c..69a329b6a9b3613b6da047af2786698f7e1134aa 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 { ClusterWorkerData, ClusterWorkerResponse } from './types.js'
 
 const expressWorkerFile = join(
@@ -43,7 +45,7 @@ const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
           }
           return undefined
         })
-        .catch(error => {
+        .catch((error: unknown) => {
           console.error('Express failed to start in cluster worker:', error)
         })
     },