From ed9137e382bafd1bb1b7e22d64d0b5ddb01cf5f9 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Tue, 28 Mar 2023 10:42:25 -0400 Subject: [PATCH] proper worker type --- bin/www.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/www.ts b/bin/www.ts index a8b3a1f1..346ad59e 100644 --- a/bin/www.ts +++ b/bin/www.ts @@ -1,6 +1,8 @@ import '../helpers/polyfills.js' import cluster from 'node:cluster' +import type { Worker } from 'node:cluster' + import os from 'node:os' import { dirname } from 'node:path' import { fileURLToPath } from 'node:url' @@ -37,7 +39,7 @@ const clusterSettings = { cluster.setupPrimary(clusterSettings) -const activeWorkers = new Map() +const activeWorkers = new Map() for (let index = 0; index < processCount; index += 1) { const worker = cluster.fork()