@startpage/local-storage
Version:
Local storage management for your startpage
11 lines (10 loc) • 344 B
TypeScript
type PrefixStorage = {
clear: () => void;
length: () => number;
setItem: (key: string, value: string) => void;
getItem: (key: string) => string | null;
removeItem: (key: string) => void;
getStorage: () => Record<string, string | null>;
};
export declare const usePrefixStorage: () => PrefixStorage;
export {};