@orbitinghail/sqlsync-solid-js
Version:
SQLSync is a collaborative offline-first wrapper around SQLite. It is designed to synchronize web application state between users, devices, and the edge.
12 lines (11 loc) • 464 B
TypeScript
import { SQLSync } from "@orbitinghail/sqlsync-worker";
import { ParentComponent } from "solid-js";
export declare const SQLSyncContext: import("solid-js").Context<[() => SQLSync | null, (sqlSync: SQLSync) => void]>;
interface Props {
workerUrl: string | URL;
wasmUrl: string | URL;
coordinatorUrl?: string | URL;
}
export declare const createSqlSync: (props: Props) => SQLSync;
export declare const SQLSyncProvider: ParentComponent<Props>;
export {};