UNPKG

prostgles-client

Version:

Reactive client for Postgres

21 lines 1.23 kB
import type { UserLike } from "prostgles-types"; import { type InitOptions } from "./prostgles"; import { SyncedTable } from "./SyncedTable/SyncedTable"; import type { ClientFunctionHandler } from "./getMethods"; declare function prostgles<DBSchema = void, FuncSchema extends ClientFunctionHandler = ClientFunctionHandler, U extends UserLike = UserLike>(params: InitOptions<DBSchema, FuncSchema, U>): Promise<unknown>; export { type DBHandlerClient, type ClientOnReadyParams as OnReadyParams, type ProstglesClientState, type TableHandlerClient, type InitOptions, asName, } from "./prostgles"; export { SyncedTable }; export * from "./hooks/useSync"; export * from "./hooks/useSubscribe"; export * from "./hooks/useProstglesClient"; export * from "./hooks/usePromise"; export * from "./hooks/useIsMounted"; export * from "./hooks/useFetch"; export * from "./hooks/useEffectDeep"; export * from "./hooks/useEffectAsync"; export * from "./hooks/useAsyncEffectQueue"; export { useAuthState, ERR_CODE_MESSAGES } from "./auth/useAuthState"; export type { SQLHandler } from "prostgles-types"; export type { ClientFunctionHandler, FunctionHandle } from "./getMethods"; export default prostgles; //# sourceMappingURL=prostgles-full.d.ts.map