title: FirebaseError: Expected type 'Tc', but it was: a custom Ac object
body: <p>I'm trying to access all documents from my firestore collection</p>
  <pre class="lang-js prettyprint-override"><code>
    const app = initializeApp(firebaseConfig);
    const db = getFirestore(app);
  
  
    async function getTodos() {
          try {
              const todoRef = collection(db, 'todos');
              let allTodos = await getDoc(todoRef);
              console.log(allTodos)
  
          } catch (err) {
              console.log(err)
          }
      }
  </code></pre>
  <p>but it's throwing this err
  <code>FirebaseError: Expected type 'Tc', but it was: a custom Ac object</code></p>