UNPKG

gm-storage

Version:

An ES6 Map wrapper for the synchronous userscript storage API

7 lines (6 loc) 298 B
import { GMStorageBase, type JSONValue } from './gm-storage-base.js'; declare class GMStorage<K extends string = string, V extends JSONValue = JSONValue> extends GMStorageBase<K, V> { protected parse: (value: string) => K; protected stringify: (value: K) => string; } export { GMStorage };