react-indexeddb-kit
Version:
A TypeScript-based React IndexedDB wrapper with CRUD operations.
14 lines (13 loc) • 474 B
TypeScript
import { ReactNode } from "react";
import { ReactIndexDBClientProps, Schema } from "../core/types";
interface ReactIndexDBContextType {
client: ReactIndexDBClientProps | null;
error: Error | null;
}
export declare function ReactIndexDBProvider({ children, dbName, schema, }: {
children: ReactNode;
dbName: string;
schema: Schema;
}): import("react/jsx-runtime").JSX.Element;
export declare function useReactIndexDB(): ReactIndexDBContextType;
export {};