@themineway/smart-storage-js
Version:
A TS/JS library that provides a smart and easy way to store data
14 lines • 656 B
TypeScript
import { EmptySmartStorageSchema } from "@types";
import { AConnector } from "./connector.abstract";
/**
* Abstract class for string-based connectors.
* Acts as a mapper from string-based storage to object-based storage.
*/
export declare abstract class AStringConnector extends AConnector {
readonly name: string;
readonly allowsObjectStorage: boolean;
constructor(name: string, allowsObjectStorage?: boolean);
get<V extends object>(key: string, schema: EmptySmartStorageSchema): V | null;
set<V extends object>(key: string, value: V, schema: EmptySmartStorageSchema): void;
}
//# sourceMappingURL=string-connector.abstract.d.ts.map