From 36f2a1f2432f645c21ed3694da03b50eb0d289a1 Mon Sep 17 00:00:00 2001 From: Christian Bewernitz Date: Sat, 4 May 2024 20:25:34 +0200 Subject: [PATCH 1/2] feat: export S3ClientOptions from mod.ts --- mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index c34fa86..d83d91f 100644 --- a/mod.ts +++ b/mod.ts @@ -3,5 +3,5 @@ * A lightweight client for connecting to S3-compatible object storage services. */ -export { Client as S3Client } from "./client.ts"; +export { Client as S3Client, type ClientOptions as S3ClientOptions } from "./client.ts"; export * as S3Errors from "./errors.ts"; From be2f6bf0ebc82bb72ac4d0486f0dfd79a392fb9f Mon Sep 17 00:00:00 2001 From: Christian Bewernitz Date: Tue, 7 May 2024 07:26:27 +0200 Subject: [PATCH 2/2] feat: export all types from client with S3 prefix --- client.ts | 4 +++- mod.ts | 12 +++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/client.ts b/client.ts index d012295..35c9e21 100644 --- a/client.ts +++ b/client.ts @@ -122,8 +122,10 @@ export interface CommonPrefix { prefix: string; } +/** + * Additional properties provided by `statObject` compared to `listObjects`. + */ export interface ObjectStatus extends S3Object { - // In addition to the data provided by "listObjects()", statObject() provides: versionId: string | null; metadata: ObjectMetadata; } diff --git a/mod.ts b/mod.ts index d83d91f..c827ad5 100644 --- a/mod.ts +++ b/mod.ts @@ -3,5 +3,15 @@ * A lightweight client for connecting to S3-compatible object storage services. */ -export { Client as S3Client, type ClientOptions as S3ClientOptions } from "./client.ts"; +export { + Client as S3Client, + type ClientOptions as S3ClientOptions, + type CommonPrefix as S3CommonPrefix, + type CopiedObjectInfo as S3CopiedObjectInfo, + type ObjectMetadata as S3ObjectMetadata, + type ObjectStatus as S3ObjectStatus, + type ResponseOverrideParams as S3ResponseOverrideParams, + type S3Object, + type UploadedObjectInfo as S3UploadedObjectInfo, +} from "./client.ts"; export * as S3Errors from "./errors.ts";