X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fworker.ts;h=12a2e321b11c3724e739d0e7d9fd4fe708eb9a12;hb=59776ec522876170418bbf0e75d58cb0f8fb9c9d;hp=ee54c6acc3f17216361f3c20b55b61f74376f260;hpb=ef9d67048603aebc89bbeb7a2dd5377d16c915c3;p=poolifier.git diff --git a/src/pools/worker.ts b/src/pools/worker.ts index ee54c6ac..12a2e321 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -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.