Skip to content

Commit da6e1cb

Browse files
committed
fix(typings): add ambient zone typings
1 parent 3c129d7 commit da6e1cb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.spec.*
22
bundles/test.umd.js
3+
test-config.*

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularfire2",
3-
"version": "4.0.0-rc.2",
3+
"version": "4.0.0-rc.2-next",
44
"description": "The official library of Firebase and Angular.",
55
"private": true,
66
"scripts": {

src/core/angularfire2.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Injectable, InjectionToken, OpaqueToken, NgModule } from '@angular/core
44
import { Subscription } from 'rxjs/Subscription';
55
import { Scheduler } from 'rxjs/Scheduler';
66
import { queue } from 'rxjs/scheduler/queue';
7-
import 'zone.js';
87

98
export interface FirebaseAppConfig {
109
apiKey?: string;
@@ -43,7 +42,9 @@ export class AngularFireModule {
4342
* with zones.
4443
*/
4544
export class ZoneScheduler {
46-
constructor(public zone: Zone) {}
45+
46+
// TODO: Correctly add ambient zone typings instead of using any.
47+
constructor(public zone: any) {}
4748

4849
schedule(...args: any[]): Subscription {
4950
return <Subscription>this.zone.run(() => queue.schedule.apply(queue, args));

0 commit comments

Comments
 (0)