https://pulumi.com logo
#general
Title
# general
b

better-rainbow-14549

11/08/2019, 12:26 PM
i'm having a weird issue with TS 3.7.2 and pulumi.all - it seems to think all the parameters are the same type. is this known / is there a workaround please?
e.g.
Copy code
PromiseConstructor.all<azure.core.GetResourceGroupResult, azure.core.GetResourceGroupResult, azure.core.GetResourceGroupResult>
is how it's seeing
Copy code
Promise.all([azure.core.getResourceGroup(args.ResourceGroupArgs),    azure.containerservice.getRegistry(args.ContainerRegistryArgs),
azure.keyvault.getKeyVault(args.KeyVaultArgs)]).then((
ah it was resolving to PromiseConstructor.all<TAll>
manually specifying all the types fixed it but it's wayyyy more long winded now
Copy code
return Promise.all<
        azure.core.GetResourceGroupResult,
        azure.containerservice.GetRegistryResult,
        azure.keyvault.GetKeyVaultResult
    >([
        azure.core.getResourceGroup(args.ResourceGroupArgs),       azure.containerservice.getRegistry(args.ContainerRegistryArgs),        azure.keyvault.getKeyVault(args.KeyVaultArgs)
    ])
w

white-balloon-205

11/08/2019, 3:33 PM
Interesting - this may be a breaking change in TypeScript 3.7. Could you open an issue in our github? We definitely want to look into this.
👍 1
b

better-rainbow-14549

11/08/2019, 5:15 PM