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:
parent
f922536ffa
commit
db0a94b581
5 changed files with 42 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue