We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36050f9 commit 6a10d6bCopy full SHA for 6a10d6b
packages/database-types/index.d.ts
@@ -134,7 +134,9 @@ export interface ServerValue {
134
increment(delta: number): Object;
135
}
136
137
-export interface ThenableReference extends Reference, Promise<Reference> {}
+export interface ThenableReference
138
+ extends Reference,
139
+ Pick<Promise<Reference>, 'then' | 'catch'> {}
140
141
export function enableLogging(
142
logger?: boolean | ((a: string) => any),
packages/firebase/index.d.ts
@@ -6902,7 +6902,7 @@ declare namespace firebase.database {
6902
6903
interface ThenableReference
6904
extends firebase.database.Reference,
6905
- Promise<Reference> {}
6906
6907
/**
6908
* Logs debugging information to the console.
0 commit comments