@themineway/smart-storage-react
Version:
A React (TS) library that provides a smart and easy way to store data
10 lines • 441 B
TypeScript
import type { AConnector, EmptySmartStorageSchema } from "@themineway/smart-storage-js";
type Options<V extends object> = {
onChange?: (value: V | null) => void;
};
export declare const useConnectorWatch: <V extends object>(connector: AConnector, key: string, schema?: EmptySmartStorageSchema, { onChange }?: Options<V>) => {
value: V | null;
connector: AConnector;
};
export {};
//# sourceMappingURL=use-connector-watch.d.ts.map