mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
Added non-null properties to database.ThenableReference (#8800)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@firebase/database-compat': patch
|
||||
'@firebase/database-types': patch
|
||||
'@firebase/database': patch
|
||||
---
|
||||
|
||||
Added non-null parent properties to ThenableReference
|
||||
@@ -228,6 +228,10 @@ export function startAt(value?: number | string | boolean | null, key?: string):
|
||||
|
||||
// @public
|
||||
export interface ThenableReference extends DatabaseReference, Pick<Promise<DatabaseReference>, 'then' | 'catch'> {
|
||||
// (undocumented)
|
||||
key: string;
|
||||
// (undocumented)
|
||||
parent: DatabaseReference;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
||||
@@ -19,3 +19,25 @@ export declare interface ThenableReference extends DatabaseReference, Pick<Promi
|
||||
```
|
||||
<b>Extends:</b> [DatabaseReference](./database.databasereference.md#databasereference_interface)<!-- -->, Pick<Promise<[DatabaseReference](./database.databasereference.md#databasereference_interface)<!-- -->>, 'then' \| 'catch'>
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [key](./database.thenablereference.md#thenablereferencekey) | string | |
|
||||
| [parent](./database.thenablereference.md#thenablereferenceparent) | [DatabaseReference](./database.databasereference.md#databasereference_interface) | |
|
||||
|
||||
## ThenableReference.key
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
key: string;
|
||||
```
|
||||
|
||||
## ThenableReference.parent
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
parent: DatabaseReference;
|
||||
```
|
||||
|
||||
Vendored
+4
-1
@@ -164,7 +164,10 @@ export interface TransactionResult {
|
||||
|
||||
export interface ThenableReference
|
||||
extends Reference,
|
||||
Pick<Promise<Reference>, 'then' | 'catch'> {}
|
||||
Pick<Promise<Reference>, 'then' | 'catch'> {
|
||||
key: string;
|
||||
parent: Reference;
|
||||
}
|
||||
|
||||
export function enableLogging(
|
||||
logger?: boolean | ((a: string) => any),
|
||||
|
||||
@@ -119,7 +119,10 @@ export interface DatabaseReference extends Query {
|
||||
*/
|
||||
export interface ThenableReference
|
||||
extends DatabaseReference,
|
||||
Pick<Promise<DatabaseReference>, 'then' | 'catch'> {}
|
||||
Pick<Promise<DatabaseReference>, 'then' | 'catch'> {
|
||||
key: string;
|
||||
parent: DatabaseReference;
|
||||
}
|
||||
|
||||
/** A callback that can invoked to remove a listener. */
|
||||
export type Unsubscribe = () => void;
|
||||
|
||||
@@ -568,7 +568,10 @@ export function onDisconnect(ref: DatabaseReference): OnDisconnect {
|
||||
|
||||
export interface ThenableReferenceImpl
|
||||
extends ReferenceImpl,
|
||||
Pick<Promise<ReferenceImpl>, 'then' | 'catch'> {}
|
||||
Pick<Promise<ReferenceImpl>, 'then' | 'catch'> {
|
||||
key: string;
|
||||
parent: ReferenceImpl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a new child location using a unique key and returns its
|
||||
|
||||
Vendored
+4
-1
@@ -7370,7 +7370,10 @@ declare namespace firebase.database {
|
||||
|
||||
interface ThenableReference
|
||||
extends firebase.database.Reference,
|
||||
Pick<Promise<Reference>, 'then' | 'catch'> {}
|
||||
Pick<Promise<Reference>, 'then' | 'catch'> {
|
||||
key: string;
|
||||
parent: Reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs debugging information to the console.
|
||||
|
||||
Reference in New Issue
Block a user