X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=d680fa16ddc7e4748a41f2e878def0384eb2e305;hb=e901162fa610e2af305aac504549580b2de48cab;hp=eb3f9727369f837d9cd36d5bd6b7dd69c9d5f0c3;hpb=d56f6cfde3b9eeb2a5e4341b91ec474580a0c07a;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index eb3f9727..d680fa16 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -1,5 +1,6 @@ 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 @@ -42,7 +43,7 @@ export interface MessageValue< /** * Kill code. */ - readonly kill?: number + readonly kill?: KillBehavior | 1 /** * Error. */