feat(migration): add lock heartbeats, predictive dry-run planning, and stricter ledger option validation
This commit is contained in:
@@ -102,8 +102,5 @@ function extractS3Client(
|
||||
bucket: plugins.smartbucket.Bucket | undefined,
|
||||
): plugins.TRawS3Client | undefined {
|
||||
if (!bucket) return undefined;
|
||||
// `getStorageClient` is typed as the actual S3Client, but it lives behind
|
||||
// an optional peer dep type so we cast through unknown to keep this file
|
||||
// compiling when smartbucket isn't installed by the consumer.
|
||||
return (bucket as any).getStorageClient() as plugins.TRawS3Client | undefined;
|
||||
return bucket.getStorageClient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user