I want to be able to reference the interface for IdTokenResult so I can use like in the below code.
export interface AppContextProps {
token: firebase.auth.IdTokenResult | undefined,
updateAppContext(newContext: any): void | undefined,
}
If I import firebase like this as pretty much all online documentation recommends
import firebase from "firebase/app"
import "firebase/auth"
import "firebase/database"
import "firebase/firestore"
import "firebase/firebase-storage"
I can't figure out how to access that interface since firebase.auth.IdTokenResult doesn't seem to exist. However if I import firebase like this...
import firebase from "firebase"
I am able to access the interface I desire but I get warnings in the browser about running firebase in dev mode. How can I do what I want correctly?