repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into elu-strategy
[poolifier.git]
/
src
/
worker
/
worker-options.ts
diff --git
a/src/worker/worker-options.ts
b/src/worker/worker-options.ts
index 791f915d580a32c822d91148db7d91f7dbf82912..e0cd392f0966769f197859b67bd53e4c1b8304f1 100644
(file)
--- 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`.
*/
* @param value - Any value.
* @returns `true` if `value` was strictly equals to `killBehavior`, otherwise `false`.
*/
-export
function isKillBehavior<KB extends KillBehavior>
(
+export
const isKillBehavior = <KB extends KillBehavior>
(
killBehavior: KB,
value: unknown
killBehavior: KB,
value: unknown
-): value is KB {
+): value is KB
=>
{
return value === killBehavior
}
return value === killBehavior
}