hundreds-musician-51496
11/07/2018, 5:13 PMPulumi.all(Record<string, Input<T>>)
overloaded to a set of keys - i.e., Pulumi.all(Record<K, Input<T>>)
.
I have a function that returns Output<{http: Listener, https: Listener}>
. Using Pulumi.all
as is, I had to write pulumi.all({ https, http }).apply(({ http, https}) => ({ http, https}));
(where http
and https
are local variables of type Output<Listener>
). Notice the extra apply
.
pulumi.all({http, https})
has type Output<Record<string, Listener>>
, but pulumi.all(...).apply(...)
has type Output<{http: .., https:...}>
which keeps my keys.
Or maybe I want Pick
? Record
confuses me still.