import type { TaskFunction } from './task-functions.js'
import { KillBehaviors, type WorkerOptions } from './worker-options.js'
import type { TaskFunction } from './task-functions.js'
import { KillBehaviors, type WorkerOptions } from './worker-options.js'
if (opts != null && !isPlainObject(opts)) {
throw new TypeError('opts worker options parameter is not a plain object')
}
if (opts != null && !isPlainObject(opts)) {
throw new TypeError('opts worker options parameter is not a plain object')
}