UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

9 lines 653 B
import { ProjectStorageLocationUsage } from '@sage-bionetworks/synapse-client'; /** * Precheck a set of uploads against a storage limit. Returns true if the uploads would cause the limit to be exceeded. * @param files the files to upload * @param usage the current storage usage * @param pendingUploadsInBytes the total size of the pending uploads which have already begun, but have not been accounted for in the usage */ export declare function willUploadsExceedStorageLimit(files: ArrayLike<File>, usage: ProjectStorageLocationUsage | undefined, pendingUploadsInBytes: number): boolean; //# sourceMappingURL=willUploadsExceedStorageLimit.d.ts.map