Hey, folks. I'm experiencing an odd behavior of `p...
# general
a
Hey, folks. I'm experiencing an odd behavior of
pulumi.all
, details in thread 🧵
✅ 1
I have following code
Copy code
pulumi.all([
  mskNodesString, // Promise<string>
  logGroup.name, // LogGroup
  ssmSecretArns, // Promise<string>[]
  accountId, // Promise<string>
  taskExecutionRole, // Promise<string>
  taskRole, // Promise<string>
  ATSRedis, // Promise<string>
  priceRedis, // Promise<string>
  liveHubRedis, // Promise<string>
]).apply(([
  nodesString,
  logGroupName,
  ssmSecretArns,
  accountId,
  taskExecutionRole,
  taskRole,
  ATSRedisHost,
  priceRedisHost,
  liveHubRedisHost,
])
image.png
error
Copy code
No overload matches this call.
  The last overload gave the following error.
    Type 'Promise<string>[]' is not assignable to type 'Input<string>'.ts(2769)
output.d.ts(66, 25): The last overload is declared here.
const ssmSecretArns: Promise<string>[]
When I comment out
ssmSecretArns
error disappears
What's odd, is that if I leave
ssmSecretArns
uncommented and comment any other line - error will disappear as well
f
i think
all/apply
in TS only supports 8 params max
yep
Copy code
export function all<T1, T2, T3, T4, T5, T6, T7, T8>(
    values: [Input<T1>, Input<T2>, Input<T3>, Input<T4>, Input<T5>, Input<T6>, Input<T7>, Input<T8>],
): Output<[Unwrap<T1>, Unwrap<T2>, Unwrap<T3>, Unwrap<T4>, Unwrap<T5>, Unwrap<T6>, Unwrap<T7>, Unwrap<T8>]>;
you've got 9 there
a
Hey @future-hairdresser-70637 Understood, thank you.
high five 1