Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StorageEvent

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

interface StorageEvent extends Event {
readonly key: string | null;
readonly newValue: string | null;
readonly oldValue: string | null;
readonly storageArea: Storage | null;
readonly url: string;
initStorageEvent(
type: string,
bubbles?: boolean,
cancelable?: boolean,
key?: string | null,
oldValue?: string | null,
newValue?: string | null,
url?: string | URL,
storageArea?: Storage | null,
): void;
}
var StorageEvent: {
prototype: StorageEvent;
new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
}
;

§Extends

§Properties

§
readonly key: string | null
[src]

Returns the key of the storage item being changed.

§
readonly newValue: string | null
[src]

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

§
readonly oldValue: string | null
[src]

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

§
readonly storageArea: Storage | null
[src]

Returns the Storage object that was affected.

§
readonly url: string
[src]

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
[src]