convex
Version:
Client for the Convex Cloud
31 lines (30 loc) • 1.02 kB
text/typescript
/**
* Tools for accessing Convex in the browser.
*
* **If you are using React, use the {@link react} module instead.**
*
* ## Usage
*
* Create a {@link ConvexHttpClient} to connect to the Convex Cloud.
*
* ```typescript
* import { ConvexHttpClient } from "convex/browser";
* import clientConfig from "../convex/_generated/clientConfig";
* const convex = new ConvexHttpClient(clientConfig);
* ```
*
* @module
*/
export { InternalConvexClient } from "./sync/client.js";
export type { ClientOptions } from "./sync/client.js";
export type {
OptimisticUpdate,
OptimisticLocalStore,
} from "./sync/optimistic_updates.js";
export type { QueryResult } from "./sync/remote_query_set.js";
export type { QueryToken } from "./sync/udf_path_utils.js";
export { ConvexHttpClient } from "./http_client.js";
export type { Query, Mutation } from "./http_client.js";
export * from "../api/index.js";
export type { ClientConfiguration } from "./client_config";
export type { QueryJournal } from "./sync/protocol.js";