123456789101112131415
  1. /// <reference types="node" />
  2. import * as childProcess from 'child_process';
  3. /**
  4. * open a file or uri using the default application for the file type.
  5. *
  6. * @return {ChildProcess} - the child process object.
  7. * @param {string} target - the file/uri to open.
  8. * @param {string} appName - (optional) the application to be used to open the
  9. * file (for example, "chrome", "firefox")
  10. * @param {function(Error)} callback - called with null on success, or
  11. * an error object that contains a property 'code' with the exit
  12. * code of the process.
  13. */
  14. export default function (target: string, appName: string | Function, callback?: any): childProcess.ChildProcess;