elegant-dress-88912
12/23/2020, 11:27 AMif (config.createS3Bucket) {
const s3Bucket = new ...
export s3BucketName = s3Bucket.name
}
The thing is that typescript wants all `export`'s to be at the top level. What do I do?proud-pizza-80589
12/23/2020, 11:41 AMexport let s3BucketName: string;
if(){
s3Bucketname = s3Bucket.name
}
Will get you an undefined in the export when you do not have a bucket, but that is easy to check later on.elegant-dress-88912
12/23/2020, 11:55 AM