Skip to content

Type Alias: FirebaseTimestamp

FirebaseTimestamp = CompatibleTimestamp | { nanoseconds: number; seconds: number; } | { toDate: () => Date; } | string | Date | number | { _methodName?: string; }

Defined in: src/types/schemas.ts:17

Common Firebase Timestamp type to handle both Firestore Timestamp and plain JS objects from APIs or persistence.

Released under the MIT License.