Skip to main content
Module

x/evt/lib/types/index.ts>dom.StorageEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.StorageEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.3/lib/types/index.ts";
const { StorageEvent } = dom;

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.