elegant-dress-88912
12/12/2019, 5:10 AM// somewhere in index.ts
if (config.createServiceAccount) {
const serviceAccount = new ...
const serviceAccountKey = new ...
export const serviceAccountPrivateKey = serviceAccountKey.PrivateKey
}
won't work, because
1. later I would need to access object props of, say, serviceAccount, but this variable scope is limited by if
block
2. `export`'s seems to be not allowed in nested blocks in typescript