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

11 lines (10 loc) 362 B
import { RecordModel } from "pocketbase"; export declare const useFiles: { /** * 获取指定 collection 下文件的下载 URL 和授权 Token * @param collection RecordModel 记录 * @param fileName 文件名 * @returns [url, token] */ getCollectionURL(collection: RecordModel, fileName: string): Promise<[string, string]>; };