Skip to content
This repository was archived by the owner on Dec 26, 2017. It is now read-only.

Commit 986b5df

Browse files
karolmie1brandonroberts
authored andcommitted
fix(build): Enable compiling with no-implicit-any option (#107)
1 parent 00a9c90 commit 986b5df

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

spec/effects-subscription.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Effects Subscription', () => {
2929
class Source {
3030
@Effect() a$ = of('a');
3131
@Effect() b$ = of('b');
32-
@Effect() c$ = of('c')
32+
@Effect() c$ = of('c');
3333
}
3434
const instance = new Source();
3535
const observer: any = { next: jasmine.createSpy('next') };

spec/metadata.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Effect, getEffectsMetadata } from '../src/effects';
33
describe('Effect Metadata', () => {
44
it('should get the effects metadata for a class instance', () => {
55
class Fixture {
6-
@Effect() a;
7-
@Effect() b;
8-
@Effect({ dispatch: false }) c;
6+
@Effect() a: any;
7+
@Effect() b: any;
8+
@Effect({ dispatch: false }) c: any;
99
}
1010

1111
const mock = new Fixture();
@@ -19,9 +19,9 @@ describe('Effect Metadata', () => {
1919

2020
it('should return an empty array if the class has not been decorated', () => {
2121
class Fixture {
22-
a;
23-
b;
24-
c;
22+
a: any;
23+
b: any;
24+
c: any;
2525
}
2626

2727
const mock = new Fixture();

src/actions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Injectable, Inject } from '@angular/core';
44
import { Action, Dispatcher } from '@ngrx/store';
55
import { Observable } from 'rxjs/Observable';
6+
import { Operator } from 'rxjs/Operator';
67
import { filter } from 'rxjs/operator/filter';
78

89

@@ -13,14 +14,14 @@ export class Actions extends Observable<Action> {
1314
this.source = actionsSubject;
1415
}
1516

16-
lift(operator) {
17+
lift(operator: Operator<any, Action>): Observable<Action> {
1718
const observable = new Actions(this);
1819
observable.operator = operator;
1920
return observable;
2021
}
2122

2223
ofType(...keys: string[]): Actions {
23-
return filter.call(this, ({ type }) => {
24+
return filter.call(this, ({ type }: {type: string}) => {
2425
const len = keys.length;
2526
if (len === 1) {
2627
return type === keys[0];

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"experimentalDecorators": true,
1010
"removeComments": false,
1111
"moduleResolution": "node",
12+
"noImplicitAny": true,
1213
"declaration": true,
1314
"module": "commonjs",
1415
"lib": ["es5", "dom", "es2015"],

0 commit comments

Comments
 (0)