I am getting a type error when trying Property 'toDate' does not exist on type 'typeof Timestamp' to access toDate method on timestamp ? the firebase docs say time stamp should have this method available
await getDoc(docData).then((docSnap) => {
console.log(Timestamp.toDate(docSnap.data()?.createdAt.seconds));
}