Interface WindowOrWorkerGlobalScope

    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: number): void;
        clearTimeout(id: 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: 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<T>(value: T, options?: StructuredSerializeOptions): T;
    }
    Hierarchy

    Properties

    caches: CacheStorage

    Available only in secure contexts.

    MDN Reference

    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: number

      Returns void

    • Parameters

      • id: number

      Returns void

    • Parameters

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

      Returns number

    • Parameters

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

      Returns number