1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { unionize, ofType, UnionOf } from "~/common/unionize";
7 export interface UploadFile {
18 export const fileUploaderActions = unionize({
19 CLEAR_UPLOAD: ofType(),
20 SET_UPLOAD_FILES: ofType<File[]>(),
21 SET_UPLOAD_PROGRESS: ofType<{ fileId: number, loaded: number, total: number, currentTime: number }>(),
22 START_UPLOAD: ofType(),
25 export type FileUploaderAction = UnionOf<typeof fileUploaderActions>;