Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export all types from client with S3 prefix #38

Merged
merged 3 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";