diff --git a/.changeset/thirty-mangos-sparkle.md b/.changeset/thirty-mangos-sparkle.md new file mode 100644 index 0000000..edcee3b --- /dev/null +++ b/.changeset/thirty-mangos-sparkle.md @@ -0,0 +1,5 @@ +--- +"@effect-aws/client-s3": patch +--- + +Type fix diff --git a/packages/client-s3/src/S3Service.ts b/packages/client-s3/src/S3Service.ts index ccd0326..794e32a 100644 --- a/packages/client-s3/src/S3Service.ts +++ b/packages/client-s3/src/S3Service.ts @@ -427,6 +427,22 @@ const commands = { interface S3Service$ { readonly _: unique symbol; + /** + * @see {@link GetObjectCommand} + */ + getObject: + | (( + args: GetObjectCommandInput, + options?: { readonly presigned?: false } & HttpHandlerOptions, + ) => Effect.Effect< + GetObjectCommandOutput, + SdkError | InvalidObjectStateError | NoSuchKeyError + >) + | (( + args: GetObjectCommandInput, + options?: { readonly presigned: true } & RequestPresigningArguments, + ) => Effect.Effect); + /** * @see {@link AbortMultipartUploadCommand} */ @@ -846,21 +862,6 @@ interface S3Service$ { options?: HttpHandlerOptions, ): Effect.Effect; - /** - * @see {@link GetObjectCommand} - */ - getObject( - args: GetObjectCommandInput, - options?: { readonly presigned?: false } & HttpHandlerOptions, - ): Effect.Effect< - GetObjectCommandOutput, - SdkError | InvalidObjectStateError | NoSuchKeyError - >; - getObject( - args: GetObjectCommandInput, - options?: { readonly presigned: true } & RequestPresigningArguments, - ): Effect.Effect; - /** * @see {@link GetObjectAclCommand} */