Skip to content

Commit 2c0a57f

Browse files
committed
fix(AoT): change constructor param interface type annotation to any
See #653
1 parent d5e5160 commit 2c0a57f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/auth/firebase_sdk_auth_backend.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ import { observeOn } from 'rxjs/operator/observeOn';
2727
@Injectable()
2828
export class FirebaseSdkAuthBackend extends AuthBackend {
2929
_fbAuth: firebase.auth.Auth;
30-
constructor( @Inject(FirebaseApp) _fbApp: firebase.app.App,
30+
/**
31+
* TODO(jeffbcross): change _fbApp type back to firebase.app.App
32+
* An issue with AoT compiler does not allow interface types on
33+
* constructor parameters, even when used in conjunction with @Inject.
34+
* https://github.com/angular/angular/issues/12631
35+
* https://github.com/angular/angularfire2/issues/653
36+
**/
37+
constructor( @Inject(FirebaseApp) _fbApp: any,
3138
private _webWorkerMode = false) {
3239
super();
3340
this._fbAuth = _fbApp.auth();

0 commit comments

Comments
 (0)