Skip to content

Commit

Permalink
feat: export all types from client with S3 prefix (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
karfau authored May 10, 2024
1 parent 5ac1d39 commit ff05c48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
12 changes: 11 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@
* 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,
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";

0 comments on commit ff05c48

Please sign in to comment.