UNPKG

voluptasmollitia

Version:
26 lines (15 loc) 1.13 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [LoadBundleTask](./firestore_.loadbundletask.md) &gt; [then](./firestore_.loadbundletask.then.md) ## LoadBundleTask.then() method Implements the `Promise<LoadBundleTaskProgress>.then` interface. <b>Signature:</b> ```typescript then<T, R>(onFulfilled?: (a: LoadBundleTaskProgress) => T | PromiseLike<T>, onRejected?: (a: Error) => R | PromiseLike<R>): Promise<T | R>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | onFulfilled | (a: [LoadBundleTaskProgress](./firestore_.loadbundletaskprogress.md)<!-- -->) =&gt; T \| PromiseLike&lt;T&gt; | Called on the completion of the loading task with a final <code>LoadBundleTaskProgress</code> update. The update will always have its <code>taskState</code> set to <code>&quot;Success&quot;</code>. | | onRejected | (a: Error) =&gt; R \| PromiseLike&lt;R&gt; | Called when an error occurs during bundle loading. | <b>Returns:</b> Promise&lt;T \| R&gt;