refactor: convert helper to arrow function
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 2 Jun 2023 23:01:06 +0000 (01:01 +0200)
committerJé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

index 791f915d580a32c822d91148db7d91f7dbf82912..e0cd392f0966769f197859b67bd53e4c1b8304f1 100644 (file)
@@ -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
 }