Package-level declarations

Types

Link copied to clipboard
data class AddEventListenerOptions(val signal: AbortSignal? = null, val passive: Boolean = false, val once: Boolean = false, val capture: Boolean = false)

Options which can be passed to the target.addEventListener method.

Link copied to clipboard
open class CustomEvent(typeName: String, detail: Any? = null) : Event, ProxyObject

The CustomEvent object is an adaptation of the CustomEvent Web API. Instances are created internally by Node.js.

Link copied to clipboard
typealias EmitterOrTarget = Any
Link copied to clipboard
sealed interface Event

The Event object is an adaptation of the Event Web API. Instances are created internally by Elide.

Link copied to clipboard

The EventEmitter class is defined and exposed by the node:events module:

Link copied to clipboard
sealed interface EventEmitterOrTarget
Link copied to clipboard

Event listeners registered for an event type may either be JavaScript functions or objects with a handleEvent property whose value is a function.

Link copied to clipboard
data class EventsOnceOptions(val signal: AbortSignal? = null)

Options which can be passed to the events.once method.

Link copied to clipboard

The EventTarget and Event objects are a Node.js-specific implementation of the EventTarget Web API that are exposed by some Node.js core APIs.

Link copied to clipboard
Link copied to clipboard
data class RemoveEventListenerOptions(val capture: Boolean = false)

Options which can be passed to the target.addEventListener method.