method Process.emitProcess.emit(event: "beforeExit",code: number,): booleanDeprecatedParametersevent: "beforeExit"code: numberReturn TypebooleanProcess.emit(event: "disconnect"): booleanDeprecatedParametersevent: "disconnect"Return TypebooleanProcess.emit(event: "exit",code: number,): booleanDeprecatedParametersevent: "exit"code: numberReturn TypebooleanProcess.emit(event: "rejectionHandled",promise: Promise<unknown>,): booleanDeprecatedParametersevent: "rejectionHandled"promise: Promise<unknown>Return TypebooleanProcess.emit(event: "uncaughtException",error: Error,): booleanDeprecatedParametersevent: "uncaughtException"error: ErrorReturn TypebooleanProcess.emit(event: "uncaughtExceptionMonitor",error: Error,): booleanDeprecatedParametersevent: "uncaughtExceptionMonitor"error: ErrorReturn TypebooleanProcess.emit(event: "unhandledRejection",reason: unknown,promise: Promise<unknown>,): booleanDeprecatedParametersevent: "unhandledRejection"reason: unknownpromise: Promise<unknown>Return TypebooleanProcess.emit(event: "warning",warning: Error,): booleanDeprecatedParametersevent: "warning"warning: ErrorReturn TypebooleanProcess.emit(event: "message",message: unknown,sendHandle: unknown,): thisDeprecatedParametersevent: "message"message: unknownsendHandle: unknownReturn TypethisProcess.emit(event: Signals,signal?: Signals,): booleanDeprecatedParametersevent: Signalsoptionalsignal: SignalsReturn TypebooleanProcess.emit(event: "multipleResolves",type: MultipleResolveType,promise: Promise<unknown>,value: unknown,): thisDeprecatedParametersevent: "multipleResolves"type: MultipleResolveTypepromise: Promise<unknown>value: unknownReturn TypethisProcess.emit(event: "worker",listener: WorkerListener,): thisDeprecatedParametersevent: "worker"listener: WorkerListenerReturn Typethis