interface WindowOrWorkerGlobalScope {
    caches: CacheStorage;
    crossOriginIsolated: boolean;
    crypto: Crypto;
    indexedDB: IDBFactory;
    isSecureContext: boolean;
    origin: string;
    performance: Performance;
    atob(data: string): string;
    btoa(data: string): string;
    clearInterval(id: undefined | number): void;
    clearTimeout(id: undefined | number): void;
    createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    fetch(input: URL | RequestInfo, 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;
}

Hierarchy (view full)

  • WindowOrWorkerGlobalScope

Properties

caches: CacheStorage

Available only in secure contexts.

crossOriginIsolated: boolean
crypto: Crypto
indexedDB: IDBFactory
isSecureContext: boolean
origin: string
performance: Performance

Methods

  • Parameters

    • data: string

    Returns string

  • Parameters

    • data: string

    Returns string

  • Parameters

    • id: undefined | number

    Returns void

  • Parameters

    • id: undefined | number

    Returns void

  • Parameters

    Returns Promise<Response>

  • Parameters

    Returns void

  • Parameters

    • e: any

    Returns void

  • Parameters

    • handler: TimerHandler
    • Optionaltimeout: number
    • Rest...arguments: any[]

    Returns number

  • Parameters

    • handler: TimerHandler
    • Optionaltimeout: number
    • Rest...arguments: any[]

    Returns number

  • Parameters

    Returns any