Would love to see `Pulumi.all(Record<string, In...
# general
h
Would love to see
Pulumi.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.