Skip to content

dispatchEvent

dispatchEvent(event): boolean

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:310

Dispatches a synthetic event event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

FetchEvent | ScheduledEvent | QueueEvent<unknown> | PromiseRejectionEvent

boolean