@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
17 lines (15 loc) • 485 B
TypeScript
import { DatasourceAction } from "../action.js";
//#region src/core/file-upload.d.ts
/**
* The shape of a single uploaded file as it is stored in a record field.
* Pre-load existing attachments from the record into this shape for edit forms.
*/
type FileAttachment = {
url: string;
filename: string;
id: string;
type?: string | null;
};
declare function upload(action: DatasourceAction, file: File): Promise<FileAttachment>;
//#endregion
export { FileAttachment, upload };