Is there a away of “auto output-ing” variables? F...
# general
c
Is there a away of “auto output-ing” variables? For example
Copy code
const instance = new CustomResource('foo');

export.bar = instance.bar;
export.baz = instance.baz;
export.bam = instance.bam;
It’s kind of irritating to do this for lots of variables, especially if I then go and create more instances.
r
export const inst = instance;
should result in an exported object with all the properties.
c
Yeeeesss. Komal, thank you! I probably should’ve thought to try that, it’s all nicely nested and everything! Thank you. Have a great day. 🙂
partypus 8bit 1
👍🏽 1
1