@cedx/webstorage
Version:
Service for interacting with the Web Storage.
29 lines • 730 B
TypeScript
/**
* An event dispatched when the storage has been changed.
*/
export declare class StorageEvent extends Event {
/**
* The event type.
*/
static readonly type = "storage:change";
/**
* The changed key.
*/
readonly key: string | null;
/**
* The new value.
*/
readonly newValue: string | null;
/**
* The original value.
*/
readonly oldValue: string | null;
/**
* Creates a new cookie event.
* @param key The changed key.
* @param oldValue The original value.
* @param newValue The new value.
*/
constructor(key: string | null, oldValue?: string | null, newValue?: string | null);
}
//# sourceMappingURL=StorageEvent.d.ts.map