new Promise((resolve, reject) => { install(options, err => { if (err) { reject(err); } else { resolve(); } }); });
chrome: { installPath: "installPath", bla: "foo", }, ie: { installPath: "installPath", bla: "foo", }, edge: { installPath: "installPath", bla: "foo", }, firefox: { installPath: "installPath", bla: "foo", }, selenium: { installPath: "installPath", bla: "foo", }, }; fsPaths = {}; // start method start(startOpts, (error: Error | null, selenium: ChildProcess) => {}); start((error: Error | null, selenium: ChildProcess) => {}); // install method install(installOpts, (error: Error | undefined, fsPaths: FsPaths) => {}); install((error: Error | undefined, fsPaths: FsPaths) => {});