Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WindowOrWorkerGlobalScope

interface WindowOrWorkerGlobalScope {
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(id: number | undefined): void;
clearTimeout(id: number | undefined): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(
sx: number,
sy: number,
sw: number,
sh: number,
): Promise<ImageBitmap>;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
reportError(e: any): void;
setInterval(
handler: TimerHandler,
timeout?: number,
...arguments: any[],
): number;
setTimeout(
handler: TimerHandler,
timeout?: number,
...arguments: any[],
): number;
structuredClone(value: any, options?: StructuredSerializeOptions): any;
}

§Properties

§
readonly caches: CacheStorage
[src]

Available only in secure contexts.

§
readonly crossOriginIsolated: boolean
[src]
§
readonly crypto: Crypto
[src]
§
readonly indexedDB: IDBFactory
[src]
§
readonly isSecureContext: boolean
[src]
§
readonly origin: string
[src]
§
readonly performance: Performance
[src]

§Methods

§
atob(data: string): string
[src]
§
btoa(data: string): string
[src]
§
clearInterval(id: number | undefined): void
[src]
§
clearTimeout(id: number | undefined): void
[src]
§
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>
[src]
§
createImageBitmap(
sx: number,
sy: number,
sw: number,
sh: number,
): Promise<ImageBitmap>
[src]
§
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
[src]
§
queueMicrotask(callback: VoidFunction): void
[src]
§
reportError(e: any): void
[src]
§
setInterval(
handler: TimerHandler,
timeout?: number,
...arguments: any[],
): number
[src]
§
setTimeout(
handler: TimerHandler,
timeout?: number,
...arguments: any[],
): number
[src]
§
structuredClone(value: any, options?: StructuredSerializeOptions): any
[src]