chex-storage
Version:
A wrapper library for Chrome extension storage local - the standard storage in the chrome extension.
15 lines (14 loc) • 490 B
TypeScript
import ChexStorageWorker from "./provider";
declare class ChexStorageWhereForOutsideMethods<TData> extends ChexStorageWorker {
#private;
constructor(tableName: string, keyWhere: keyof TData, extensionId: string);
/**
* Query data where the specified key equals the given value
*
* @param val
* @returns TData[]
*/
equals(val: any): Promise<TData[]>;
search(pattern: string): Promise<TData[]>;
}
export default ChexStorageWhereForOutsideMethods;