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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user