@@ -8294,11 +8294,13 @@ declare namespace firebase.firestore {
8294
8294
/**
8295
8295
* Loads a Firestore bundle into the local cache.
8296
8296
*
8297
- * @param bundleData An object representing the bundle to be load, could be a `ArrayBuffer`,
8298
- * a `ReadableStream<Uint8Array>` or a `string`.
8297
+ * @param bundleData
8298
+ * An object representing the bundle to be load, could be a `ArrayBuffer`,
8299
+ * a `ReadableStream<Uint8Array>` or a `string`.
8299
8300
*
8300
- * @return A `LoadBundleTask` object, which notifies callers with progress update, completion
8301
- * or error event. It can be used as a `Promise<LoadBundleTaskProgress>`.
8301
+ * @return
8302
+ * A `LoadBundleTask` object, which notifies callers with progress update, completion
8303
+ * or error event. It can be used as a `Promise<LoadBundleTaskProgress>`.
8302
8304
*/
8303
8305
loadBundle (
8304
8306
bundleData : ArrayBuffer | ReadableStream < Uint8Array > | string
@@ -8328,11 +8330,14 @@ declare namespace firebase.firestore {
8328
8330
export interface LoadBundleTask extends PromiseLike < LoadBundleTaskProgress > {
8329
8331
/**
8330
8332
* Registers functions to listen to bundle loading progresses.
8331
- * @param next Called there is a progress update from bundle loading, typically whenever
8332
- * a Firestore document is loaded it will generate a progress update.
8333
- * @param error Called when there is an error occurred from loading the bundle. The task
8334
- * aborts after reporting the error, and there should be no more updates after this.
8335
- * @param complete Called when the loading task is complete.
8333
+ * @param next
8334
+ * Called there is a progress update from bundle loading, typically whenever
8335
+ * a Firestore document is loaded it will generate a progress update.
8336
+ * @param error
8337
+ * Called when there is an error occurred from loading the bundle. The task
8338
+ * aborts after reporting the error, and there should be no more updates after this.
8339
+ * @param complete
8340
+ * Called when the loading task is complete.
8336
8341
*/
8337
8342
onProgress (
8338
8343
next ?: ( progress : LoadBundleTaskProgress ) => any ,
@@ -8343,9 +8348,11 @@ declare namespace firebase.firestore {
8343
8348
/**
8344
8349
* Implements the `Promise<LoadBundleTaskProgress>.then` interface.
8345
8350
*
8346
- * @param onFulfilled It is called with the compeltion `LoadBundleTaskProgress` when the
8347
- * loading task completes.
8348
- * @param onRejected It is called when there is an error occurred from loading the bundle.
8351
+ * @param onFulfilled
8352
+ * It is called with the compeltion `LoadBundleTaskProgress` when the
8353
+ * loading task completes.
8354
+ * @param onRejected
8355
+ * It is called when there is an error occurred from loading the bundle.
8349
8356
*/
8350
8357
then < T , R > (
8351
8358
onFulfilled ?: ( a : LoadBundleTaskProgress ) => T | PromiseLike < T > ,
@@ -8355,7 +8362,8 @@ declare namespace firebase.firestore {
8355
8362
/**
8356
8363
* Implements the `Promise<LoadBundleTaskProgress>.catch` interface.
8357
8364
*
8358
- * @param onRejected It is called when there is an error occurred from loading the bundle.
8365
+ * @param onRejected
8366
+ * It is called when there is an error occurred from loading the bundle.
8359
8367
*/
8360
8368
catch < R > (
8361
8369
onRejected : ( a : Error ) => R | PromiseLike < R >
0 commit comments