From 7c217083c826d9e842a04fae6bc08f51a7b7e82f Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Wed, 13 Sep 2023 11:44:59 -0700 Subject: [PATCH] fix(storage): fix listOutput types (#12027) Co-authored-by: Sridhar --- packages/storage/src/providers/s3/types/index.ts | 1 - packages/storage/src/providers/s3/types/outputs.ts | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/storage/src/providers/s3/types/index.ts b/packages/storage/src/providers/s3/types/index.ts index 7f8b49c6c15..17c64167090 100644 --- a/packages/storage/src/providers/s3/types/index.ts +++ b/packages/storage/src/providers/s3/types/index.ts @@ -12,7 +12,6 @@ export { } from './options'; export { DownloadDataOutput, - DownloadFileOutput, GetUrlOutput, UploadDataOutput, ListOutputItem, diff --git a/packages/storage/src/providers/s3/types/outputs.ts b/packages/storage/src/providers/s3/types/outputs.ts index d7c36f66f5c..1c149a9213a 100644 --- a/packages/storage/src/providers/s3/types/outputs.ts +++ b/packages/storage/src/providers/s3/types/outputs.ts @@ -23,19 +23,17 @@ export interface Item extends StorageItem { export type DownloadDataOutput = DownloadTask>; -export type DownloadFileOutput = Item; - export type GetUrlOutput = StorageGetUrlOutput; export type UploadDataOutput = UploadTask; export type GetPropertiesOutput = Item; -export type ListOutputItem = Item; +export type ListOutputItem = Omit; -export type ListAllOutput = StorageListOutput; +export type ListAllOutput = StorageListOutput; -export type ListPaginateOutput = StorageListOutput & { +export type ListPaginateOutput = StorageListOutput & { nextToken?: string; };