May 18, 2021
This is not a stupid question at all. It's actually a very valid question and one that I asked myself. I have no idea how to achieve this at the moment without digging into and changing the Firebase SDK (which obviously is not a good idea). Hopefully the firebase team will implement better type safety soon!
https://github.com/googleapis/nodejs-firestore/issues/1448#issuecomment-797797274