docs-devsite/database.thenablereference.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
A Promise that can also act as a DatabaseReference when returned by push()<!-- -->. The reference is available immediately and the Promise resolves as the write to the backend completes.
<b>Signature:</b>
export declare interface ThenableReference extends DatabaseReference, Pick<Promise<DatabaseReference>, 'then' | 'catch'>
<b>Extends:</b> DatabaseReference<!-- -->, Pick<Promise<DatabaseReference<!-- -->>, 'then' | 'catch'>
| Property | Type | Description |
|---|---|---|
| key | string | |
| parent | DatabaseReference |
<b>Signature:</b>
key: string;
<b>Signature:</b>
parent: DatabaseReference;