ExtendableEvent
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:908
Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ExtendableEvent(
type
,init?
):ExtendableEvent
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:668
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ExtendableEvent
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”bubbles
Section titled “bubbles”
readonly
bubbles:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:692
Returns true or false depending on how event was initialized. True if event goes through its target’s ancestors in reverse tree order, and false otherwise.
Inherited from
Section titled “Inherited from”cancelable
Section titled “cancelable”
readonly
cancelable:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:698
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
Inherited from
Section titled “Inherited from”cancelBubble
Section titled “cancelBubble”cancelBubble:
boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:746
Inherited from
Section titled “Inherited from”composed
Section titled “composed”
readonly
composed:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:686
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
Inherited from
Section titled “Inherited from”currentTarget?
Section titled “currentTarget?”
readonly
optional
currentTarget:EventTarget
<Record
<string
,Event
>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:716
Returns the object whose event listener’s callback is currently being invoked.
Inherited from
Section titled “Inherited from”defaultPrevented
Section titled “defaultPrevented”
readonly
defaultPrevented:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:704
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
Inherited from
Section titled “Inherited from”eventPhase
Section titled “eventPhase”
readonly
eventPhase:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:680
Returns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Inherited from
Section titled “Inherited from”isTrusted
Section titled “isTrusted”
readonly
isTrusted:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:740
Returns true if event was dispatched by the user agent, and false otherwise.
Inherited from
Section titled “Inherited from”returnValue
Section titled “returnValue”
readonly
returnValue:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:710
Inherited from
Section titled “Inherited from”srcElement
Section titled “srcElement”
readonly
srcElement:null
|EventTarget
<Record
<string
,Event
>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:728
Inherited from
Section titled “Inherited from”target?
Section titled “target?”
readonly
optional
target:EventTarget
<Record
<string
,Event
>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:722
Returns the object to which event is dispatched (its target).
Inherited from
Section titled “Inherited from”timeStamp
Section titled “timeStamp”
readonly
timeStamp:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:734
Returns the event’s timestamp as the number of milliseconds measured relative to the time origin.
Inherited from
Section titled “Inherited from”
readonly
type:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:674
Returns the type of event, e.g. “click”, “hashchange”, or “submit”.
Inherited from
Section titled “Inherited from”AT_TARGET
Section titled “AT_TARGET”
readonly
static
AT_TARGET:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:773
Inherited from
Section titled “Inherited from”BUBBLING_PHASE
Section titled “BUBBLING_PHASE”
readonly
static
BUBBLING_PHASE:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:774
Inherited from
Section titled “Inherited from”CAPTURING_PHASE
Section titled “CAPTURING_PHASE”
readonly
static
CAPTURING_PHASE:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:772
Inherited from
Section titled “Inherited from”
readonly
static
NONE:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:771
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”composedPath()
Section titled “composedPath()”composedPath():
EventTarget
<Record
<string
,Event
>>[]
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:770
Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.
Returns
Section titled “Returns”EventTarget
<Record
<string
, Event
>>[]
Inherited from
Section titled “Inherited from”preventDefault()
Section titled “preventDefault()”preventDefault():
void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:758
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”stopImmediatePropagation()
Section titled “stopImmediatePropagation()”stopImmediatePropagation():
void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:752
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Event
.stopImmediatePropagation
stopPropagation()
Section titled “stopPropagation()”stopPropagation():
void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:764
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”waitUntil()
Section titled “waitUntil()”waitUntil(
promise
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:910
Parameters
Section titled “Parameters”promise
Section titled “promise”Promise
<any
>
Returns
Section titled “Returns”void