UNPKG

voluptasmollitia

Version:
16 lines (9 loc) 751 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [ThenableReference](./database.thenablereference.md) ## ThenableReference interface A `Promise` that can also act as a `Reference` when returned by [push()](./database.push.md)<!-- -->. The reference is available immediately and the Promise resolves as the write to the backend completes. <b>Signature:</b> ```typescript export declare interface ThenableReference extends Reference, Pick<Promise<Reference>, 'then' | 'catch'> ``` <b>Extends:</b> [Reference](./database.reference.md)<!-- -->, Pick&lt;Promise&lt;[Reference](./database.reference.md)<!-- -->&gt;, 'then' \| 'catch'&gt;