@apideck/file-picker
Version:
A React file picker component that works with the Apideck [File Storage API](https://developers.apideck.com/apis/file-storage/reference).
17 lines (16 loc) • 440 B
TypeScript
interface Props {
onSuccess: (response?: any) => void;
}
interface UploadFileProps {
file: File;
appId: string;
consumerId: string;
serviceId: string;
folderId: string | null;
jwt: string;
}
export declare const useUpload: ({ onSuccess }: Props) => {
uploadFile: ({ file, appId, consumerId, serviceId, folderId, jwt }: UploadFileProps) => Promise<void>;
isLoading: boolean;
};
export {};