ServiceWorkerGlobalScope
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:293
The ServiceWorkerGlobalScope interface of the Service Worker API represents the global execution context of a service worker.
Available only in secure contexts.
Extends
Section titled “Extends”Properties
Section titled “Properties”AbortController
Section titled “AbortController”AbortController: typeof
AbortController
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:357
AbortSignal
Section titled “AbortSignal”AbortSignal: typeof
AbortSignal
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:358
Blob: typeof
Blob
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:364
Body: typeof
Body
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:351
ByteLengthQueuingStrategy
Section titled “ByteLengthQueuingStrategy”ByteLengthQueuingStrategy: typeof
ByteLengthQueuingStrategy
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:342
Cache: typeof
Cache
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:371
caches
Section titled “caches”caches:
CacheStorage
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:321
CacheStorage
Section titled “CacheStorage”CacheStorage: typeof
CacheStorage
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:370
CloseEvent
Section titled “CloseEvent”CloseEvent: typeof
CloseEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:335
Cloudflare
Section titled “Cloudflare”Cloudflare:
Cloudflare
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:324
CompressionStream
Section titled “CompressionStream”CompressionStream: typeof
CompressionStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:346
CountQueuingStrategy
Section titled “CountQueuingStrategy”CountQueuingStrategy: typeof
CountQueuingStrategy
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:343
crypto
Section titled “crypto”crypto:
Crypto
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:320
Crypto
Section titled “Crypto”Crypto: typeof
Crypto
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:367
CryptoKey
Section titled “CryptoKey”CryptoKey: typeof
CryptoKey
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:369
CustomEvent
Section titled “CustomEvent”CustomEvent: typeof
CustomEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:328
DecompressionStream
Section titled “DecompressionStream”DecompressionStream: typeof
DecompressionStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:347
DOMException
Section titled “DOMException”DOMException: typeof
DOMException
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:294
ErrorEvent
Section titled “ErrorEvent”ErrorEvent: typeof
ErrorEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:344
Event: typeof
Event
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:326
EventSource
Section titled “EventSource”EventSource: typeof
EventSource
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:345
EventTarget
Section titled “EventTarget”EventTarget: typeof
EventTarget
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:80
Inherited from
Section titled “Inherited from”ExtendableEvent
Section titled “ExtendableEvent”ExtendableEvent: typeof
ExtendableEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:327
FetchEvent
Section titled “FetchEvent”FetchEvent: typeof
FetchEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:330
File: typeof
File
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:365
FixedLengthStream
Section titled “FixedLengthStream”FixedLengthStream: typeof
FixedLengthStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:372
FormData
Section titled “FormData”FormData: typeof
FormData
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:366
Headers
Section titled “Headers”Headers: typeof
Headers
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:350
HTMLRewriter
Section titled “HTMLRewriter”HTMLRewriter: typeof
HTMLRewriter
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:374
IdentityTransformStream
Section titled “IdentityTransformStream”IdentityTransformStream: typeof
IdentityTransformStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:373
MessageEvent
Section titled “MessageEvent”MessageEvent: typeof
MessageEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:334
origin
Section titled “origin”
readonlyorigin:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:325
performance
Section titled “performance”performance:
Performance
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:323
PromiseRejectionEvent
Section titled “PromiseRejectionEvent”PromiseRejectionEvent: typeof
PromiseRejectionEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:329
ReadableStream
Section titled “ReadableStream”ReadableStream: {(
underlyingSource,strategy?):ReadableStream<Uint8Array<ArrayBufferLike>>; <R>(underlyingSource?,strategy?):ReadableStream<R>;prototype:ReadableStream; }
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:338
Call Signature
Section titled “Call Signature”new ReadableStream(
underlyingSource,strategy?):ReadableStream<Uint8Array<ArrayBufferLike>>
Parameters
Section titled “Parameters”underlyingSource
Section titled “underlyingSource”strategy?
Section titled “strategy?”QueuingStrategy<Uint8Array<ArrayBufferLike>>
Returns
Section titled “Returns”ReadableStream<Uint8Array<ArrayBufferLike>>
Call Signature
Section titled “Call Signature”new ReadableStream<
R>(underlyingSource?,strategy?):ReadableStream<R>
Parameters
Section titled “Parameters”underlyingSource?
Section titled “underlyingSource?”strategy?
Section titled “strategy?”Returns
Section titled “Returns”prototype
Section titled “prototype”prototype:
ReadableStream
ReadableStreamBYOBReader
Section titled “ReadableStreamBYOBReader”ReadableStreamBYOBReader: typeof
ReadableStreamBYOBReader
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:337
ReadableStreamDefaultReader
Section titled “ReadableStreamDefaultReader”ReadableStreamDefaultReader: typeof
ReadableStreamDefaultReader
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:336
Request
Section titled “Request”Request: {<
CfHostMetadata,Cf>(input,init?):Request<CfHostMetadata,Cf>;prototype:Request; }
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:352
Parameters
Section titled “Parameters”URL | RequestInfo<CfProperties<unknown>, CfProperties<CfProperties<unknown>>>
RequestInit<Cf>
Returns
Section titled “Returns”Request<CfHostMetadata, Cf>
prototype
Section titled “prototype”prototype:
Request
Response
Section titled “Response”Response: {(
body?,init?):Response;prototype:Response;error:Response;json:Response;redirect:Response; }
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:353
Parameters
Section titled “Parameters”null | BodyInit
Returns
Section titled “Returns”prototype
Section titled “prototype”prototype:
Response
error()
Section titled “error()”error():
Response
Returns
Section titled “Returns”json()
Section titled “json()”json(
any,maybeInit?):Response
Parameters
Section titled “Parameters”any
maybeInit?
Section titled “maybeInit?”Returns
Section titled “Returns”redirect()
Section titled “redirect()”redirect(
url,status?):Response
Parameters
Section titled “Parameters”string
status?
Section titled “status?”number
Returns
Section titled “Returns”ScheduledEvent
Section titled “ScheduledEvent”ScheduledEvent: typeof
ScheduledEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:333
scheduler
Section titled “scheduler”scheduler:
Scheduler
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:322
self:
ServiceWorkerGlobalScope
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:319
SubtleCrypto
Section titled “SubtleCrypto”SubtleCrypto: typeof
SubtleCrypto
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:368
TailEvent
Section titled “TailEvent”TailEvent: typeof
TailEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:331
TextDecoder
Section titled “TextDecoder”TextDecoder: typeof
TextDecoder
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:359
TextDecoderStream
Section titled “TextDecoderStream”TextDecoderStream: typeof
TextDecoderStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:349
TextEncoder
Section titled “TextEncoder”TextEncoder: typeof
TextEncoder
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:360
TextEncoderStream
Section titled “TextEncoderStream”TextEncoderStream: typeof
TextEncoderStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:348
TraceEvent
Section titled “TraceEvent”TraceEvent: typeof
TailEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:332
TransformStream
Section titled “TransformStream”TransformStream: typeof
TransformStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:341
URL: typeof
URL
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:361
URLPattern
Section titled “URLPattern”URLPattern: typeof
URLPattern
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:363
URLSearchParams
Section titled “URLSearchParams”URLSearchParams: typeof
URLSearchParams
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:362
WebSocket
Section titled “WebSocket”WebSocket: {(
url,protocols?):WebSocket;CLOSED:number;CLOSING:number;CONNECTING:number;OPEN:number;prototype:WebSocket;READY_STATE_CLOSED:number;READY_STATE_CLOSING:number;READY_STATE_CONNECTING:number;READY_STATE_OPEN:number; }
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:354
Parameters
Section titled “Parameters”string
protocols?
Section titled “protocols?”string | string[]
Returns
Section titled “Returns”CLOSED
Section titled “CLOSED”
readonlyCLOSED:number
CLOSING
Section titled “CLOSING”
readonlyCLOSING:number
CONNECTING
Section titled “CONNECTING”
readonlyCONNECTING:number
readonlyOPEN:number
prototype
Section titled “prototype”prototype:
WebSocket
READY_STATE_CLOSED
Section titled “READY_STATE_CLOSED”
readonlyREADY_STATE_CLOSED:number
READY_STATE_CLOSING
Section titled “READY_STATE_CLOSING”
readonlyREADY_STATE_CLOSING:number
READY_STATE_CONNECTING
Section titled “READY_STATE_CONNECTING”
readonlyREADY_STATE_CONNECTING:number
READY_STATE_OPEN
Section titled “READY_STATE_OPEN”
readonlyREADY_STATE_OPEN:number
WebSocketPair()
Section titled “WebSocketPair()”WebSocketPair: () =>
object
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:355
Returns
Section titled “Returns”object
0:
WebSocket
1:
WebSocket
WebSocketRequestResponsePair
Section titled “WebSocketRequestResponsePair”WebSocketRequestResponsePair: typeof
WebSocketRequestResponsePair
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:356
WorkerGlobalScope
Section titled “WorkerGlobalScope”WorkerGlobalScope: typeof
WorkerGlobalScope
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:295
WritableStream
Section titled “WritableStream”WritableStream: typeof
WritableStream
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:339
WritableStreamDefaultWriter
Section titled “WritableStreamDefaultWriter”WritableStreamDefaultWriter: typeof
WritableStreamDefaultWriter
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:340
Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”addEventListener<
Type>(type,handler,options?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:878
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Type Parameters
Section titled “Type Parameters”Type extends keyof WorkerGlobalScopeEventMap
Parameters
Section titled “Parameters”Type
handler
Section titled “handler”EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>
options?
Section titled “options?”boolean | EventTargetAddEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WorkerGlobalScope.addEventListener
atob()
Section titled “atob()”atob(
data):string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:297
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
btoa()
Section titled “btoa()”btoa(
data):string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:296
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
clearInterval()
Section titled “clearInterval()”clearInterval(
timeoutId):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:311
Parameters
Section titled “Parameters”timeoutId
Section titled “timeoutId”null | number
Returns
Section titled “Returns”void
clearTimeout()
Section titled “clearTimeout()”clearTimeout(
timeoutId):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:304
Parameters
Section titled “Parameters”timeoutId
Section titled “timeoutId”null | number
Returns
Section titled “Returns”void
dispatchEvent()
Section titled “dispatchEvent()”dispatchEvent(
event):boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:898
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Parameters
Section titled “Parameters”FetchEvent | ScheduledEvent | QueueEvent<unknown> | PromiseRejectionEvent
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”WorkerGlobalScope.dispatchEvent
fetch()
Section titled “fetch()”fetch(
input,init?):Promise<Response>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:315
Parameters
Section titled “Parameters”RequestInfo<unknown, CfProperties<unknown>> | URL
RequestInit<RequestInitCfProperties>
Returns
Section titled “Returns”Promise<Response>
queueMicrotask()
Section titled “queueMicrotask()”queueMicrotask(
task):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:312
Parameters
Section titled “Parameters”Function
Returns
Section titled “Returns”void
removeEventListener()
Section titled “removeEventListener()”removeEventListener<
Type>(type,handler,options?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:888
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Type Parameters
Section titled “Type Parameters”Type extends keyof WorkerGlobalScopeEventMap
Parameters
Section titled “Parameters”Type
handler
Section titled “handler”EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>
options?
Section titled “options?”boolean | EventTargetEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WorkerGlobalScope.removeEventListener
reportError()
Section titled “reportError()”reportError(
error):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:314
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”void
setInterval()
Section titled “setInterval()”Call Signature
Section titled “Call Signature”setInterval(
callback,msDelay?):number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:305
Parameters
Section titled “Parameters”callback
Section titled “callback”(…args) => void
msDelay?
Section titled “msDelay?”number
Returns
Section titled “Returns”number
Call Signature
Section titled “Call Signature”setInterval<
Args>(callback,msDelay?, …args?):number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:306
Type Parameters
Section titled “Type Parameters”Args extends any[]
Parameters
Section titled “Parameters”callback
Section titled “callback”(…args) => void
msDelay?
Section titled “msDelay?”number
…Args
Returns
Section titled “Returns”number
setTimeout()
Section titled “setTimeout()”Call Signature
Section titled “Call Signature”setTimeout(
callback,msDelay?):number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:298
Parameters
Section titled “Parameters”callback
Section titled “callback”(…args) => void
msDelay?
Section titled “msDelay?”number
Returns
Section titled “Returns”number
Call Signature
Section titled “Call Signature”setTimeout<
Args>(callback,msDelay?, …args?):number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:299
Type Parameters
Section titled “Type Parameters”Args extends any[]
Parameters
Section titled “Parameters”callback
Section titled “callback”(…args) => void
msDelay?
Section titled “msDelay?”number
…Args
Returns
Section titled “Returns”number
structuredClone()
Section titled “structuredClone()”structuredClone<
T>(value,options?):T
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:313
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”T
options?
Section titled “options?”Returns
Section titled “Returns”T