voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
16 lines (9 loc) • 751 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [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<Promise<[Reference](./database.reference.md)<!-- -->>, 'then' \| 'catch'>