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

View File

@ -31,7 +31,7 @@ class CheckoutModel {
/**
* Custom validator.
*/
function creditCardValidator(c): {[key: string]: boolean} {
function creditCardValidator(c: any /** TODO #9100 */): {[key: string]: boolean} {
if (isPresent(c.value) && RegExpWrapper.test(/^\d{16}$/g, c.value)) {
return null;
} else {
@ -73,7 +73,7 @@ class CreditCardValidator {
directives: [NgIf]
})
class ShowError {
formDir;
formDir: any /** TODO #9100 */;
controlPath: string;
errorTypes: string[];
@ -94,7 +94,7 @@ class ShowError {
_errorMessage(code: string): string {
var config = {'required': 'is required', 'invalidCreditCard': 'is invalid credit card number'};
return config[code];
return (config as any /** TODO #9100 */)[code];
}
}