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

Hierarchy

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

    Returns void

  • Parameters

    • id: number

    Returns void

  • Parameters

    Returns Promise<Response>

  • Parameters

    Returns void

  • Parameters

    • e: any

    Returns void

  • Parameters

    • handler: TimerHandler
    • Optional timeout: number
    • Rest ...arguments: any[]

    Returns number

  • Parameters

    • handler: TimerHandler
    • Optional timeout: number
    • Rest ...arguments: any[]

    Returns number

  • Parameters

    Returns any

Generated using TypeDoc