Skip to content

Commit

Permalink
add key to the Reference type for realtime db (#3150)
Browse files Browse the repository at this point in the history
* add key to the Reference type for realtime db

* Update packages/database/lib/index.d.ts

* Update packages/database/lib/index.d.ts

* Update packages/database/lib/index.d.ts

* removed spacing

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
  • Loading branch information
russellwheatley and Salakar committed Jan 30, 2020
1 parent f27178f commit b8490a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/database/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ export namespace FirebaseDatabaseTypes {
*/
child(path: string): Reference;

/**
* The last part of the Reference's path.
* For example, "ada" is the key for https://<DATABASE_NAME>.firebaseio.com/users/ada.
* The key of a root Reference is null.
*/
key: string | null;

/**
* Writes data to this Database location.
*
Expand Down

0 comments on commit b8490a5

Please sign in to comment.