X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=7ea86042ff796660b57410561bd1b57a2b9c8025;hb=e41beb60860c421ea15b6f41002a9d44b65a811e;hp=8fb8130a6bd2f268a8d41e51d7f9ce54c7d8fc1c;hpb=084dd5ce9b7a3094e90f639d67d68e0bb924c4df;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 8fb8130a..7ea86042 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -1,8 +1,9 @@ import type { Worker } from 'cluster' import type { MessagePort } from 'worker_threads' +import type { KillBehavior } from './worker/worker-options' /** - * Make all properties in T non-readonly + * Make all properties in T non-readonly. */ export type Draft = { -readonly [P in keyof T]?: T[P] } @@ -42,7 +43,7 @@ export interface MessageValue< /** * Kill code. */ - readonly kill?: 'HARD' | 'SOFT' | number + readonly kill?: KillBehavior | 1 /** * Error. */