1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed uploads with real data

This commit is contained in:
muerwre 2019-08-20 12:05:50 +07:00
parent db0a94b581
commit 38d56838f2
5 changed files with 127 additions and 58 deletions

View file

@ -7,8 +7,8 @@ export interface ITag {
}
export type IInputTextProps = DetailedHTMLProps<
InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
> & {
wrapperClassName?: string;
handler?: (value: string) => void;
@ -46,6 +46,8 @@ export interface IResultWithStatus<T> {
export type UUID = string;
export type IUploadType = 'image' | 'text' | 'audio' | 'video' | 'other';
export interface IFile {
id?: UUID;
temp_id?: UUID;
@ -58,7 +60,7 @@ export interface IFile {
url: string;
size: number;
type: 'image' | 'text' | 'audio' | 'video';
type: IUploadType;
mime: string;
createdAt?: string;
@ -68,6 +70,7 @@ export interface IFile {
export interface IFileWithUUID {
temp_id?: UUID;
file: File;
subject?: string;
target: string;
type: string;
}