File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ export interface ServerValue {
134
134
increment ( delta : number ) : Object ;
135
135
}
136
136
137
- export interface ThenableReference extends Reference , Promise < Reference > { }
137
+ export interface ThenableReference
138
+ extends Reference ,
139
+ Pick < Promise < Reference > , 'then' | 'catch' > { }
138
140
139
141
export function enableLogging (
140
142
logger ?: boolean | ( ( a : string ) => any ) ,
Original file line number Diff line number Diff line change @@ -6902,7 +6902,7 @@ declare namespace firebase.database {
6902
6902
6903
6903
interface ThenableReference
6904
6904
extends firebase . database . Reference ,
6905
- Promise < Reference > { }
6905
+ Pick < Promise < Reference > , 'then' | 'catch' > { }
6906
6906
6907
6907
/**
6908
6908
* Logs debugging information to the console.
You can’t perform that action at this time.
0 commit comments