UNPKG

pocketbase-tools

Version:

A TypeScript toolkit for PocketBase, featuring a standard service/action/types layered structure. It provides interfaces and implementations for common business logic such as users, products, company profiles, and file utilities, making it suitable for se

10 lines (9 loc) 301 B
import PocketBase from "pocketbase"; /** * 创建 PocketBase 客户端实例 * @param config baseUrl 或 { baseUrl } */ export function createPBClient(config) { const configuration = typeof config === "string" ? { baseUrl: config } : config; return new PocketBase(configuration.baseUrl); }