Skip to content

Commit fbc4cdf

Browse files
authored
Merge pull request #2 from UniversalDataTool/proposal-upload-file
Add uploadFiles method
2 parents 8b52b86 + 086e1e9 commit fbc4cdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DatasetManager.type.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ interface DatasetManager {
8282

8383
// We assume we can write to the dataset if not specified
8484
isWritable?: () => boolean;
85+
86+
// If this is undefined, it's assumed the dataset manager doesn't support uploading
87+
uploadFiles?: (files: Array<{ data: Buffer, destinationUrl: string }>) => Promise<{ uploadUrl: string }>
8588
}
8689

8790
export default DatasetManager

0 commit comments

Comments
 (0)