Skip to content

Commit 3eb36c9

Browse files
committed
Return Firebase as type from $ref
This is what really happens in the source code for AngularFire 1.1.1 (and always has), for both AngularFireObject and AngularFireArray. See https://github.com/firebase/angularfire/blob/1aa81906cdfb3e35e7c31fc6dee8a4922b1470ae/src/FirebaseObject.js#L125
1 parent f23cd55 commit 3eb36c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angularfire/angularfire.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface AngularFireObject extends AngularFireSimpleObject {
3333
$loaded(resolve?: (x: AngularFireObject) => ng.IHttpPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
3434
$loaded(resolve?: (x: AngularFireObject) => ng.IPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
3535
$loaded(resolve?: (x: AngularFireObject) => void, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
36-
$ref(): AngularFire;
36+
$ref(): Firebase;
3737
$bindTo(scope: ng.IScope, varName: string): ng.IPromise<any>;
3838
$watch(callback: Function, context?: any): Function;
3939
$destroy(): void;
@@ -53,7 +53,7 @@ interface AngularFireArray extends Array<AngularFireSimpleObject> {
5353
$loaded(resolve?: (x: AngularFireArray) => ng.IHttpPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
5454
$loaded(resolve?: (x: AngularFireArray) => ng.IPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
5555
$loaded(resolve?: (x: AngularFireArray) => void, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
56-
$ref(): AngularFire;
56+
$ref(): Firebase;
5757
$watch(cb: (event: string, key: string, prevChild: string) => void, context?: any): Function;
5858
$destroy(): void;
5959
}

0 commit comments

Comments
 (0)