function worker(methods, options) {
  var worker = require('./worker');
  worker.add(methods, options);
}
Create a worker and optionally register a set of methods to the worker.
@param {{ [k: string]: (...args: any[]) => any }} [methods]
@param {WorkerRegisterOptions} [options]