X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Futils.ts;h=d8c4c3e905318b3c485991155c65cfdc03f269a7;hb=bcf1c155ec2e2d9208c8f818abd031662bd61d7f;hp=e023cc37588cc8d85b86400872d0f4ee3a2ef234;hpb=b367e9feea81752706c59c92c0b8e33d3419322b;p=poolifier.git diff --git a/src/worker/utils.ts b/src/worker/utils.ts index e023cc37..d8c4c3e9 100644 --- a/src/worker/utils.ts +++ b/src/worker/utils.ts @@ -1,8 +1,10 @@ -import { isPlainObject } from '../utils' -import type { TaskFunction } from './task-functions' -import { KillBehaviors, type WorkerOptions } from './worker-options' +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') }