X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fworker-options.ts;h=e0cd392f0966769f197859b67bd53e4c1b8304f1;hb=8d20e449d72975f6add9177d1097d5a204d14f71;hp=791f915d580a32c822d91148db7d91f7dbf82912;hpb=9f8f5811bfbaae8f44976880045faef15bd0387f;p=poolifier.git diff --git a/src/worker/worker-options.ts b/src/worker/worker-options.ts index 791f915d..e0cd392f 100644 --- a/src/worker/worker-options.ts +++ b/src/worker/worker-options.ts @@ -25,10 +25,10 @@ export type KillBehavior = keyof typeof KillBehaviors * @param value - Any value. * @returns `true` if `value` was strictly equals to `killBehavior`, otherwise `false`. */ -export function isKillBehavior ( +export const isKillBehavior = ( killBehavior: KB, value: unknown -): value is KB { +): value is KB => { return value === killBehavior }