UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

19 lines (18 loc) 798 B
import { FileHandle } from './FileHandle'; export declare enum CloudProviderFileHandleConcreteTypeEnum { S3FileHandle = "org.sagebionetworks.repo.model.file.S3FileHandle", GoogleCloudFileHandle = "org.sagebionetworks.repo.model.file.GoogleCloudFileHandle" } interface CloudProviderFileHandleInterface extends FileHandle { readonly bucketName: string; readonly key: string; readonly previewId?: string; readonly isPreview: boolean; } export interface S3FileHandle extends CloudProviderFileHandleInterface { readonly concreteType: CloudProviderFileHandleConcreteTypeEnum.S3FileHandle; } export interface GoogleCloudFileHandle extends CloudProviderFileHandleInterface { readonly concreteType: CloudProviderFileHandleConcreteTypeEnum.GoogleCloudFileHandle; } export {};