build: build fix package publishing on JSR
[poolifier.git] / src / pools / worker.ts
index ee54c6acc3f17216361f3c20b55b61f74376f260..12a2e321b11c3724e739d0e7d9fd4fe708eb9a12 100644 (file)
@@ -134,10 +134,11 @@ export interface TaskStatistics {
 /**
  * Enumeration of worker types.
  */
-export const WorkerTypes = Object.freeze({
-  thread: 'thread',
-  cluster: 'cluster'
-} as const)
+export const WorkerTypes: Readonly<{ thread: 'thread', cluster: 'cluster' }> =
+  Object.freeze({
+    thread: 'thread',
+    cluster: 'cluster'
+  } as const)
 
 /**
  * Worker type.