petals-ui
Version:
Front-end UI components foundation
18 lines (13 loc) • 376 B
text/typescript
import { FileFormControlValue } from '../../form-control';
type UploadFile = FileFormControlValue & {
name: string;
url: string;
};
type FileUploadValue = UploadFile[];
type FileUploadRequestOption = {
name?: string;
method?: string;
data?: { [key: string]: any };
withCredentials?: boolean;
};
export { UploadFile, FileUploadValue, FileUploadRequestOption };