exporting a promise value
Unanswered
English Angora posted this in #help-forum
English AngoraOP
I have a value I have to fetch but is part of a configuration that I have to export. Is this possible?
export const foo = {
key: await fetchKey(),
…rest of stuff
}
export const engine = defineEngine(foo)
export const {
destruc1,
destruc2
} = engine
export const foo = {
key: await fetchKey(),
…rest of stuff
}
export const engine = defineEngine(foo)
export const {
destruc1,
destruc2
} = engine