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

fixed eslint again

This commit is contained in:
muerwre 2019-08-20 10:58:34 +07:00
parent f922536ffa
commit db0a94b581
5 changed files with 42 additions and 27 deletions

View file

@ -1,4 +1,6 @@
import { IResultWithStatus, IFile } from '~/redux/types';
import {
IResultWithStatus, IFile, IUploadProgressHandler, IFileWithUUID,
} from '~/redux/types';
import { api, configWithToken } from '~/utils/api';
import { API } from '~/constants/api';
@ -7,11 +9,9 @@ export const postUploadFile = ({
file,
target = 'others',
type = 'image',
}: {
access: string;
file: File;
target: string;
type: string;
}: IFileWithUUID & {
access: string;
onProgress: IUploadProgressHandler;
}): Promise<IResultWithStatus<IFile>> => {
const data = new FormData();
data.append('file', file);