Skip to content

Commit c9b101d

Browse files
Dan WahlinDan Wahlin
Dan Wahlin
authored and
Dan Wahlin
committed
Updates for types
1 parent 3576242 commit c9b101d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/public/app/core/data.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'rxjs/add/observable/throw';
77
import 'rxjs/add/operator/map';
88
import 'rxjs/add/operator/catch';
99

10-
import { ICustomer, IOrder, IState } from '../shared/interfaces';
10+
import { ICustomer, IOrder, IState, IPagedResults } from '../shared/interfaces';
1111

1212
@Injectable()
1313
export class DataService {
@@ -32,7 +32,7 @@ export class DataService {
3232
.catch(this.handleError);
3333
}
3434

35-
getCustomersPage(page: number, pageSize: number) {
35+
getCustomersPage(page: number, pageSize: number) : Observable<IPagedResults<ICustomer[]>> {
3636
return this.http.get(`${this.baseUrl}/page/${page}/${pageSize}`)
3737
.map((res: Response) => {
3838
const totalRecords = +res.headers.get('x-inlinecount');

src/public/app/customers/customer-edit.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class CustomerEditComponent implements OnInit {
5252
const cust = JSON.stringify(customer);
5353
this.customer = JSON.parse(cust);
5454
},
55-
(err) => console.log(err));
55+
(err: any) => console.log(err));
5656
}
5757

5858
getStates() {
@@ -71,7 +71,7 @@ export class CustomerEditComponent implements OnInit {
7171
this.errorMessage = 'Unable to save customer';
7272
}
7373
},
74-
(err) => console.log(err));
74+
(err: any) => console.log(err));
7575

7676
} else {
7777

@@ -84,7 +84,7 @@ export class CustomerEditComponent implements OnInit {
8484
this.errorMessage = 'Unable to add customer';
8585
}
8686
},
87-
(err) => console.log(err));
87+
(err: any) => console.log(err));
8888

8989
}
9090
}

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"emitDecoratorMetadata": true,
88
"experimentalDecorators": true,
99
"removeComments": false,
10-
"noImplicitAny": true,
10+
"noImplicitAny": false,
1111
"suppressImplicitAnyIndexErrors": true
1212
},
1313
"exclude": [

0 commit comments

Comments
 (0)