refactor(TypeScript): Add noImplicitAny

We automatically insert explicit 'any's where needed. These need to be
addressed as in #9100.

Fixes #4924
This commit is contained in:
ScottSWu
2016-06-08 15:45:15 -07:00
parent 87d824e1b4
commit 86fbd50c3d
305 changed files with 2338 additions and 2337 deletions
@@ -107,7 +107,7 @@ export class XHRConnection implements Connection {
});
}
setDetectedContentType(req, _xhr) {
setDetectedContentType(req: any /** TODO #9100 */, _xhr: any /** TODO #9100 */) {
// Skip if a custom Content-Type header is provided
if (isPresent(req.headers) && isPresent(req.headers['Content-Type'])) {
return;
+3 -3
View File
@@ -128,11 +128,11 @@ export class Headers {
toJSON(): {[key: string]: any} {
let serializableHeaders = {};
this._headersMap.forEach((values: string[], name: string) => {
let list = [];
let list: any[] /** TODO #9100 */ = [];
iterateListLike(values, val => list = ListWrapper.concat(list, val.split(',')));
iterateListLike(values, (val: any /** TODO #9100 */) => list = ListWrapper.concat(list, val.split(',')));
serializableHeaders[name] = list;
(serializableHeaders as any /** TODO #9100 */)[name] = list;
});
return serializableHeaders;
}
+3 -3
View File
@@ -168,6 +168,6 @@ export class Request {
const noop = function () {};
const w = typeof window == 'object' ? window : noop;
const FormData = w['FormData'] || noop;
const Blob = w['Blob'] || noop;
const ArrayBuffer = w['ArrayBuffer'] || noop;
const FormData = (w as any /** TODO #9100 */)['FormData'] || noop;
const Blob = (w as any /** TODO #9100 */)['Blob'] || noop;
const ArrayBuffer = (w as any /** TODO #9100 */)['ArrayBuffer'] || noop;