should be able to use `pulumi.all` for this ```con...
# typescript
s
should be able to use
pulumi.all
for this
Copy code
const asdf = [] as Array<Output<string>>
pulumi.all(asdf).apply(x=>x) // x will be type string[] here
l
I think you might need to use
pulumi.all(...asdf)
?
s
that would run into a compile error since
all
cannot take a variable number of inputs. This is the overload we are targeting by passing in an array
Copy code
export declare function all<T>(ds: (Input<T> | undefined)[]): Output<Unwrap<T>[]>;
l
Ah yes. Have you managed to get it working? Do you need to do something like convert an Array<Output<string>> to an Output<Array<string>>?
s
Did you mean to ask @gorgeous-country-43026? I should have threaded my initial message to him
l
Heh sorry, I thought this was a question 🙂
😄 1