abstracted-firebase
Advanced tools
Comparing version 0.27.12 to 0.27.13
@@ -68,3 +68,3 @@ import { IDictionary } from "common-types"; | ||
*/ | ||
query<T = any>(path: string): SerializedQuery<T>; | ||
query<T extends object = any>(path: string): SerializedQuery<T>; | ||
/** Get a DB reference for a given path in Firebase */ | ||
@@ -151,3 +151,3 @@ ref(path?: string): Reference; | ||
*/ | ||
getSnapshot(path: string | SerializedQuery): Promise<DataSnapshot>; | ||
getSnapshot<T extends object = any>(path: string | SerializedQuery<T>): Promise<DataSnapshot>; | ||
/** | ||
@@ -168,3 +168,3 @@ * **getValue** | ||
*/ | ||
getRecord<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
getRecord<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
/** | ||
@@ -180,3 +180,3 @@ * **getList** | ||
*/ | ||
getList<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
getList<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
/** | ||
@@ -183,0 +183,0 @@ * **getSortedList** |
@@ -68,3 +68,3 @@ import { IDictionary } from "common-types"; | ||
*/ | ||
query<T = any>(path: string): SerializedQuery<T>; | ||
query<T extends object = any>(path: string): SerializedQuery<T>; | ||
/** Get a DB reference for a given path in Firebase */ | ||
@@ -151,3 +151,3 @@ ref(path?: string): Reference; | ||
*/ | ||
getSnapshot(path: string | SerializedQuery): Promise<DataSnapshot>; | ||
getSnapshot<T extends object = any>(path: string | SerializedQuery<T>): Promise<DataSnapshot>; | ||
/** | ||
@@ -168,3 +168,3 @@ * **getValue** | ||
*/ | ||
getRecord<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
getRecord<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
/** | ||
@@ -180,3 +180,3 @@ * **getList** | ||
*/ | ||
getList<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
getList<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
/** | ||
@@ -183,0 +183,0 @@ * **getSortedList** |
@@ -68,3 +68,3 @@ import { IDictionary } from "common-types"; | ||
*/ | ||
query<T = any>(path: string): SerializedQuery<T>; | ||
query<T extends object = any>(path: string): SerializedQuery<T>; | ||
/** Get a DB reference for a given path in Firebase */ | ||
@@ -151,3 +151,3 @@ ref(path?: string): Reference; | ||
*/ | ||
getSnapshot(path: string | SerializedQuery): Promise<DataSnapshot>; | ||
getSnapshot<T extends object = any>(path: string | SerializedQuery<T>): Promise<DataSnapshot>; | ||
/** | ||
@@ -168,3 +168,3 @@ * **getValue** | ||
*/ | ||
getRecord<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
getRecord<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T>; | ||
/** | ||
@@ -180,3 +180,3 @@ * **getList** | ||
*/ | ||
getList<T = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
getList<T extends object = any>(path: string | SerializedQuery<T>, idProp?: string): Promise<T[]>; | ||
/** | ||
@@ -183,0 +183,0 @@ * **getSortedList** |
{ | ||
"name": "abstracted-firebase", | ||
"version": "0.27.12", | ||
"version": "0.27.13", | ||
"description": "Core functional library supporting 'abstracted-admin' and 'abstracted-client'", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
153408