title: Typescript types for Firebase
body: <p>I want to be able to reference the  interface for IdTokenResult so I can use like in the below code.</p>
  <pre><code>export interface AppContextProps {
    token: firebase.auth.IdTokenResult | undefined,
    updateAppContext(newContext: any): void | undefined,
  }
  
  </code></pre>
  <p>If I import firebase like this as pretty much all online documentation recommends</p>
  <pre><code>import firebase from &quot;firebase/app&quot;
  import &quot;firebase/auth&quot;
  import &quot;firebase/database&quot;
  import &quot;firebase/firestore&quot;
  import &quot;firebase/firebase-storage&quot;
  </code></pre>
  <p>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...</p>
  <pre><code>import firebase from &quot;firebase&quot;
  
  </code></pre>
  <p>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?</p>