X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=d680fa16ddc7e4748a41f2e878def0384eb2e305;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=d7f9d6a20e68d4c3da8481727714d51a04a4aef0;hpb=4c35177b63cac8a87aa6de389e1232e94c59b8c9;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index d7f9d6a2..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?: string | number + readonly kill?: KillBehavior | 1 /** * Error. */