I'm currently working with Vue3 and Firebase using TypeScript.
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import { auth } from './firebase'
// eslint-disable-next-line
let application: any
auth.onAuthStateChanged(() => {
if (!application) {
application = createApp(App)
.use(store)
.use(router)
.mount('#app')
}
})
Can anyone advise on the correct type to set for the 'application' variable? I've attempted App and typeof App without success.