Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit b4b66e2

Browse files
committed
chore: explicit type for S3 storage client
1 parent bd64ec3 commit b4b66e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/adapters/s3/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const s3Adapter =
1616
({ config, bucket, acl }: Args): Adapter =>
1717
({ collection, prefix }): GeneratedAdapter => {
1818
let storageClient: AWS.S3 | null = null
19-
const getStorageClient = () => {
19+
const getStorageClient: () => AWS.S3 = () => {
2020
if (storageClient) return storageClient
2121
storageClient = new AWS.S3(config)
2222
return storageClient

0 commit comments

Comments
 (0)