Skip to main content
Module

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

💧EventEmitter's typesafe replacement
Go to Latest
interface StorageEvent
implements Event
import { type StorageEvent } from "https://deno.land/x/evt@v2.4.13/lib/types/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.