Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>StorageEvent

Deno Standard Extensions
Go to Latest
interface StorageEvent
implements Event
import { type StorageEvent } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document.

Properties

readonly
key: string | null

Returns the key of the storage item being changed.

readonly
newValue: string | null

Returns the new value of the key of the storage item whose value is being changed.

readonly
oldValue: string | null

Returns the old value of the key of the storage item whose value is being changed.

readonly
storageArea: Storage | null

Returns the Storage object that was affected.

readonly
url: string

Returns the URL of the document whose storage item changed.

Methods

initStorageEvent(
type: string,
bubbles?: boolean,
cancelable?: boolean,
key?: string | null,
oldValue?: string | null,
newValue?: string | null,
url?: string | URL,
storageArea?: Storage | null,
): void