Skip to content

Instantly share code, notes, and snippets.

@Eosis
Created January 13, 2022 17:55
Show Gist options
  • Save Eosis/f029ae9795d89c7ebb9f784f95949c88 to your computer and use it in GitHub Desktop.
Save Eosis/f029ae9795d89c7ebb9f784f95949c88 to your computer and use it in GitHub Desktop.
// The type we get from on retrieving the document from firestore:
type FromFirestore = {
"meetingAgenda": string
"startTime": firestore.Timestamp // 😱 This is a different type between the client and the admin sdks.
}
// The type we want in in our Frontend and Backend:
type Meeting = {
meetingAgenda: string,
startTime: Luxon.DateTime
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment