[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload getAll function to allow array destructuring #515

Merged
merged 8 commits into from
Jan 9, 2019
Prev Previous commit
Next Next commit
Include getAll overload in types
  • Loading branch information
cxam committed Jan 8, 2019
commit 0ef67977cd6f8da650ef30be7aa2327fea2064c3
4 changes: 4 additions & 0 deletions types/firestore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ declare namespace FirebaseFirestore {
* @return A Promise that resolves with an array of resulting document
* snapshots.
*/
getAll(...documentRefsOrReadOptions: Array<DocumentReference|ReadOptions>):
Promise<DocumentSnapshot[]>;
getAll(
documentRef: DocumentReference,
...moreDocumentRefsOrReadOptions: Array<DocumentReference|ReadOptions>
Expand Down Expand Up @@ -266,6 +268,8 @@ declare namespace FirebaseFirestore {
* @return A Promise that resolves with an array of resulting document
* snapshots.
*/
getAll(...documentRefsOrReadOptions: Array<DocumentReference|ReadOptions>):
Promise<DocumentSnapshot[]>;
getAll(
documentRef: DocumentReference,
...moreDocumentRefsOrReadOptions: Array<DocumentReference|ReadOptions>
Expand Down