X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Futils.ts;h=d8c4c3e905318b3c485991155c65cfdc03f269a7;hb=2fdbf3a95c3cf5e269285e4e570efce9019758b0;hp=b9372401ed881988d893248167d98a6b222c00be;hpb=d35e571704515a8b729d3455e4784054f07c368f;p=poolifier.git diff --git a/src/worker/utils.ts b/src/worker/utils.ts index b9372401..d8c4c3e9 100644 --- a/src/worker/utils.ts +++ b/src/worker/utils.ts @@ -2,7 +2,9 @@ import { isPlainObject } from '../utils.js' import type { TaskFunction } from './task-functions.js' import { KillBehaviors, type WorkerOptions } from './worker-options.js' -export const checkValidWorkerOptions = (opts: WorkerOptions): void => { +export const checkValidWorkerOptions = ( + opts: WorkerOptions | undefined +): void => { if (opts != null && !isPlainObject(opts)) { throw new TypeError('opts worker options parameter is not a plain object') }