File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,10 @@ export interface TransactionResult {
166
166
167
167
export interface ThenableReference
168
168
extends Reference,
169
- Pick<Promise<Reference>, 'then' | 'catch'> {}
169
+ Pick<Promise<Reference>, 'then' | 'catch'> {
170
+ key: string;
171
+ parent: Reference;
172
+ }
170
173
171
174
export function enableLogging(
172
175
logger?: boolean | ((a: string) => any),
Original file line number Diff line number Diff line change @@ -119,7 +119,10 @@ export interface DatabaseReference extends Query {
119
119
*/
120
120
export interface ThenableReference
121
121
extends DatabaseReference,
122
- Pick<Promise<DatabaseReference>, 'then' | 'catch'> {}
122
+ Pick<Promise<DatabaseReference>, 'then' | 'catch'> {
123
+ key: string;
124
+ parent: DatabaseReference;
125
+ }
123
126
124
127
/** A callback that can invoked to remove a listener. */
125
128
export type Unsubscribe = () => void;
Original file line number Diff line number Diff line change @@ -570,7 +570,10 @@ export function onDisconnect(ref: DatabaseReference): OnDisconnect {
570
570
571
571
export interface ThenableReferenceImpl
572
572
extends ReferenceImpl,
573
- Pick<Promise<ReferenceImpl>, 'then' | 'catch'> {}
573
+ Pick<Promise<ReferenceImpl>, 'then' | 'catch'> {
574
+ key: string;
575
+ parent: ReferenceImpl;
576
+ }
574
577
575
578
/**
576
579
* Generates a new child location using a unique key and returns its
Original file line number Diff line number Diff line change @@ -7371,7 +7371,10 @@ declare namespace firebase.database {
7371
7371
7372
7372
interface ThenableReference
7373
7373
extends firebase.database.Reference,
7374
- Pick<Promise<Reference>, 'then' | 'catch'> {}
7374
+ Pick<Promise<Reference>, 'then' | 'catch'> {
7375
+ key: string;
7376
+ parent: Reference;
7377
+ }
7375
7378
7376
7379
/**
7377
7380
* Logs debugging information to the console.
You can’t perform that action at this time.
0 commit comments