Skip to content

Commit

Permalink
fix(AoT): change constructor param interface type annotation to any
Browse files Browse the repository at this point in the history
See #653
  • Loading branch information
jeffbcross committed Nov 1, 2016
1 parent d5e5160 commit 2c0a57f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/auth/firebase_sdk_auth_backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ import { observeOn } from 'rxjs/operator/observeOn';
@Injectable()
export class FirebaseSdkAuthBackend extends AuthBackend {
_fbAuth: firebase.auth.Auth;
constructor( @Inject(FirebaseApp) _fbApp: firebase.app.App,
/**
* TODO(jeffbcross): change _fbApp type back to firebase.app.App
* An issue with AoT compiler does not allow interface types on
* constructor parameters, even when used in conjunction with @Inject.
* https://github.com/angular/angular/issues/12631
* https://github.com/angular/angularfire2/issues/653
**/
constructor( @Inject(FirebaseApp) _fbApp: any,
private _webWorkerMode = false) {
super();
this._fbAuth = _fbApp.auth();
Expand Down

0 comments on commit 2c0a57f

Please sign in to comment.