Node.js-specific extension to the EventTarget
class that removes the listener
for the given type
. The only difference between removeListener()
and removeEventListener()
is that removeListener()
will return a reference to the EventTarget
.
method
events.default.NodeEventTarget.removeListener
type: string,
listener: (arg: any) => void,
options?: EventListenerOptions
): this;