I have an object that looks like this with a flow type. I checked what the require function is from hovering in Vscode. But not sure here to access it from? I'm wondering if I need something like flow-typed. But can't find it there. Am i typing this correctly?
// @flow
const backgroundImage = require('./myBg.jpeg')
type configType = {
backgroundImage: string | NodeRequire
}
const config = {
backgroundImage
}