Skip to content
Type

EventListenerOptions

Options for EventEmitter.on.

ts
type EventListenerOptions = {
	once?: boolean;
};

Used by

Properties

once

ts
once?: boolean;

If true, the listener will be automatically removed after being called once. Defaults to false.

Released under the Mozilla Public License 2.0.