File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,6 @@ interface BindCollectionParameter extends CommonBindOptionsParameter {
187
187
collection : CollectionReference | Query
188
188
}
189
189
190
- // TODO: refactor without using an object to improve size like the other functions
191
-
192
190
export function bindCollection < T > (
193
191
target : BindCollectionParameter [ 'target' ] ,
194
192
collection : CollectionReference < T > | Query < T > ,
Original file line number Diff line number Diff line change @@ -304,8 +304,7 @@ export interface UseCollectionOptions {}
304
304
* @returns
305
305
*/
306
306
export function useCollection <
307
- // explicit generic as unknown to allow arbitrary types
308
- // TODO: check if it's actually possible to use something like `number` as the generic, if not, remove these constrains
307
+ // explicit generic as unknown to allow arbitrary types like numbers or strings
309
308
R extends CollectionReference < unknown > | Query < unknown >
310
309
> (
311
310
collectionRef : R ,
You can’t perform that action at this time.
0 commit comments