@firebase/database-types
Advanced tools
Comparing version 0.3.1-0 to 0.3.1-canary.9556469
@@ -23,3 +23,3 @@ /** | ||
exportVal(): any; | ||
forEach(action: (a: DataSnapshot) => boolean): boolean; | ||
forEach(action: (a: DataSnapshot) => boolean | void): boolean; | ||
getPriority(): string | number | null; | ||
@@ -57,2 +57,9 @@ hasChild(path: string): boolean; | ||
type EventType = | ||
| 'value' | ||
| 'child_added' | ||
| 'child_changed' | ||
| 'child_moved' | ||
| 'child_removed'; | ||
export interface Query { | ||
@@ -65,3 +72,3 @@ endAt(value: number | string | boolean | null, key?: string): Query; | ||
off( | ||
eventType?: string, | ||
eventType?: EventType, | ||
callback?: (a: DataSnapshot, b?: string | null) => any, | ||
@@ -71,3 +78,3 @@ context?: Object | null | ||
on( | ||
eventType: string, | ||
eventType: EventType, | ||
callback: (a: DataSnapshot | null, b?: string) => any, | ||
@@ -78,7 +85,7 @@ cancelCallbackOrContext?: Object | null, | ||
once( | ||
eventType: string, | ||
eventType: EventType, | ||
successCallback?: (a: DataSnapshot, b?: string) => any, | ||
failureCallbackOrContext?: Object | null, | ||
context?: Object | null | ||
): Promise<any>; | ||
): Promise<DataSnapshot>; | ||
orderByChild(path: string): Query; | ||
@@ -85,0 +92,0 @@ orderByKey(): Query; |
{ | ||
"name": "@firebase/database-types", | ||
"version": "0.3.1-0", | ||
"version": "0.3.1-canary.9556469", | ||
"description": "@firebase/database Types", | ||
@@ -14,3 +14,3 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"peerDependencies": { | ||
"@firebase/app-types": "0.x" | ||
"@firebase/app-types": "0.3.1-canary.9556469" | ||
}, | ||
@@ -17,0 +17,0 @@ "repository": { |
4691
122