UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

15 lines (14 loc) 380 B
type BrowserFile = File; type RNFile = { uri: string; name: string; type?: string; }; type UniversalFile = BrowserFile | RNFile; type UploadResponse = { fileId: string; relativePath: string; publicPath: string; }; declare function useUploadFile(): (file: UniversalFile, pathParts: string[]) => Promise<UploadResponse | void>; export default useUploadFile;