Skip to content

Commit 43e2cd7

Browse files
committed
fix: importar Timestamp correctamente desde firebase/firestore
1 parent 82801b9 commit 43e2cd7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/types/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { Timestamp } from "firebase/firestore";
2+
13
// ============================================
24
// ENTIDADES PRINCIPALES
35
// ============================================
@@ -127,15 +129,15 @@ export interface FirestorePrediction {
127129
suggestedName: string;
128130
message: string;
129131
scores: GameScores;
130-
timestamp: FirebaseFirestore.Timestamp;
132+
timestamp: Timestamp;
131133
userAgent: string;
132134
}
133135

134136
/**
135137
* Estructura del documento de configuración
136138
*/
137139
export interface FirestoreEventConfig {
138-
revealDate: FirebaseFirestore.Timestamp;
140+
revealDate: Timestamp;
139141
isRevealed: boolean;
140142
actualResult: Hypothesis | null;
141143
babyName: string | null;

0 commit comments

Comments
 (0)