Skip to content

Commit 2f53ec6

Browse files
committed
refactor: fix types
1 parent 50d3f06 commit 2f53ec6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/firestore/optionsApi.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ declare module '@vue/runtime-core' {
161161
*/
162162
$firestoreBind(
163163
name: string,
164-
reference: Query | CollectionReference,
164+
// TODO: create proper overloads with generics like in the composition API
165+
reference: Query<unknown> | CollectionReference<unknown>,
165166
options?: FirestoreOptions
166167
): Promise<DocumentData[]>
168+
167169
$firestoreBind(
168170
name: string,
169-
reference: DocumentReference,
171+
// TODO: create proper overloads with generics like in the composition API
172+
reference: DocumentReference<unknown>,
170173
options?: FirestoreOptions
171174
): Promise<DocumentData>
172175

0 commit comments

Comments
 (0)