Interface PersistStorage

Source
Expand description

Interface for Web Storage API used by persist.

This is here so projects without DOM types can use persist

interface PersistStorage {
    getItem(key: string): string | null;
    removeItem(key: string): void;
    setItem(key: string, value: string): void;
}

Methods§

Source§

getItem(key: string): string | null

Source§

removeItem(key: string): void

Source§

setItem(key: string, value: string): void