ProcessLike.d.ts 434 B

123456789101112
  1. /**
  2. * This interface describes Node.js process that is potentially able to communicate over IPC channel
  3. */
  4. interface ProcessLike {
  5. pid?: string | number;
  6. send?: (message: any, sendHandle?: any, options?: any, callback?: (error: any) => void) => boolean;
  7. on: (event: any, listener: any) => any;
  8. off: (event: any, listener?: any) => any;
  9. connected?: boolean;
  10. disconnect?: () => void;
  11. }
  12. export { ProcessLike };