Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-cluster...
[poolifier.git] / examples / typescript / http-server-pool / express-cluster / src / worker.ts
index a2dbcefee3086ec5a21b96d0a7e666514dba7651..c5fe74acc122c0c391d419c559d613026ea56354 100644 (file)
@@ -1,10 +1,10 @@
-import type { Server } from 'http'
-import type { AddressInfo } from 'net'
+import type { Server } from 'node:http'
+import type { AddressInfo } from 'node:net'
 import { ClusterWorker } from 'poolifier'
 import express, { type Express, type Request, type Response } from 'express'
 import { type WorkerData, type WorkerResponse } from './types.js'
 
-const factorial: (n: number) => number = (n) => {
+const factorial: (n: number) => number = n => {
   if (n === 0) {
     return 1
   }