@@ -112,27 +112,33 @@ export function clearIndexedDbPersistence(
112
112
113
113
export function collection (
114
114
firestore : FirebaseFirestore ,
115
- collectionPath : string
115
+ path : string ,
116
+ ...pathComponents : string [ ]
116
117
) : CollectionReference < DocumentData > ;
117
118
export function collection (
118
119
reference : CollectionReference < unknown > ,
119
- collectionPath : string
120
+ path : string ,
121
+ ...pathComponents : string [ ]
120
122
) : CollectionReference < DocumentData > ;
121
123
export function collection (
122
124
reference : DocumentReference ,
123
- collectionPath : string
125
+ path : string ,
126
+ ...pathComponents : string [ ]
124
127
) : CollectionReference < DocumentData > ;
125
128
export function doc (
126
129
firestore : FirebaseFirestore ,
127
- documentPath : string
130
+ path : string ,
131
+ ...pathComponents : string [ ]
128
132
) : DocumentReference < DocumentData > ;
129
133
export function doc < T > (
130
134
reference : CollectionReference < T > ,
131
- documentPath ?: string
135
+ path ?: string ,
136
+ ...pathComponents : string [ ]
132
137
) : DocumentReference < T > ;
133
138
export function doc (
134
139
reference : DocumentReference < unknown > ,
135
- documentPath : string
140
+ path : string ,
141
+ ...pathComponents : string [ ]
136
142
) : DocumentReference < DocumentData > ;
137
143
export function collectionGroup (
138
144
firestore : FirebaseFirestore ,
@@ -247,7 +253,6 @@ export class DocumentReference<T = DocumentData> {
247
253
248
254
get parent ( ) : CollectionReference < T > ;
249
255
250
- collection ( collectionPath : string ) : CollectionReference < DocumentData > ;
251
256
withConverter < U > ( converter : FirestoreDataConverter < U > ) : DocumentReference < U > ;
252
257
}
253
258
@@ -365,7 +370,6 @@ export class CollectionReference<T = DocumentData> extends Query<T> {
365
370
366
371
get parent ( ) : DocumentReference < DocumentData > | null ;
367
372
368
- doc ( documentPath ?: string ) : DocumentReference < T > ;
369
373
withConverter < U > (
370
374
converter : FirestoreDataConverter < U >
371
375
) : CollectionReference < U > ;
0 commit comments