repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184855e
)
refactor: convert helper to arrow function
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 2 Jun 2023 23:01:06 +0000
(
01:01
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 2 Jun 2023 23:01:06 +0000
(
01:01
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/worker-options.ts
patch
|
blob
|
blame
|
history
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`.
*/
-export
function isKillBehavior<KB extends KillBehavior>
(
+export
const isKillBehavior = <KB extends KillBehavior>
(
killBehavior: KB,
value: unknown
-): value is KB {
+): value is KB
=>
{
return value === killBehavior
}