sparse-intern-71089
11/17/2021, 9:15 PMbillowy-army-68599
export const
will do the same thingpurple-application-23904
11/17/2021, 9:36 PMMap<string, pulumi.Output<any>>
could I export that?purple-application-23904
11/17/2021, 9:36 PMexport const vars = output
)billowy-army-68599
purple-application-23904
11/18/2021, 6:08 PMvars
at all)orange-kite-80991
11/21/2021, 7:37 AMpurple-application-23904
11/22/2021, 5:25 PMconsole.log
the value I can see the values, but at the end there's no output.purple-application-23904
11/22/2021, 5:27 PMconst cloudLib = new ...
cloudLib.createWebsocketGateway(...)
export const vars = cloudLib.outputs
console.log("vars", vars)
where outputs is
outputs: Map<string, pulumi.Output<any>> = new Map();
purple-application-23904
12/06/2021, 8:38 PMexport const vars = Array.from(cloudLib.outputs).reduce((obj, [key, value]) => (
Object.assign(obj, { [key]: value })
), {});
So it looks like it just doesn't like Map
but object
is okay