Skip to content

Commit d6b7477

Browse files
committed
ignore some ts warnings for now
we didn't change the functionality, maybe a newer version of typescript it catching these?
1 parent 2075363 commit d6b7477

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/firestore.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export function useFirestoreDocData<T = unknown>(ref: DocumentReference<T>, opti
6565
const observableId = `firestore:docData:${ref.firestore.app.name}:${ref.path}:idField=${idField}`;
6666
const observable = docData(ref, { idField });
6767

68+
// @ts-expect-error TODO investigate if undefined warning is relevant
6869
return useObservable(observableId, observable, options);
6970
}
7071

@@ -77,6 +78,7 @@ export function useFirestoreDocDataOnce<T = unknown>(ref: DocumentReference<T>,
7778
const observableId = `firestore:docDataOnce:${ref.firestore.app.name}:${ref.path}:idField=${idField}`;
7879
const observable$ = docData(ref, { idField }).pipe(first());
7980

81+
// @ts-expect-error TODO investigate if undefined warning is relevant
8082
return useObservable(observableId, observable$, options);
8183
}
8284

0 commit comments

Comments
 (0)