interface
__internal.BunEvent
interface BunEvent
The Node.js-flavored members of the global Event. The global interface picks them up only when lib.dom.d.ts is not loaded: lib.dom declares composedPath(): EventTarget[], which is incompatible with the tuple type below, so when lib.dom is loaded its declarations win.
- cancelBubble: boolean
Alias for event.stopPropagation(). This is not used in Node.js and is provided purely for completeness.
- readonly defaultPrevented: boolean
trueifcancelableistrueandevent.preventDefault()has been called. - readonly isTrusted: boolean
The
AbortSignal"abort" event is emitted withisTrustedset totrue. The value isfalsein all other cases. Returns an array containing the current EventTarget as the only entry or empty if the event is not being dispatched. This is not used in Node.js and is provided purely for completeness.
Sets the
defaultPreventedproperty totrueifcancelableistrue.Stops the invocation of event listeners after the current one completes.
This is not used in Node.js and is provided purely for completeness.