chore(noImplicitAny): add noImplicitAny to tsconfig

This commit is contained in:
Adam Bradley
2017-01-12 10:14:50 -06:00
parent 7906e90ae0
commit 24d0052541
36 changed files with 286 additions and 234 deletions

View File

@@ -162,7 +162,7 @@ export class Keyboard {
function cssClass() {
self._dom.write(() => {
platform.doc().body.classList[isKeyInputEnabled ? 'add' : 'remove']('focus-outline');
(<any>platform.doc().body.classList)[isKeyInputEnabled ? 'add' : 'remove']('focus-outline');
});
}

View File

@@ -206,7 +206,7 @@ export const PLATFORM_CONFIGS: { [key: string]: PlatformConfig } = {
// cordova has its own exitApp method
plt.exitApp = function() {
win['navigator']['app'].exitApp();
(<any>win)['navigator']['app'].exitApp();
};
// cordova has fully loaded and we've added listeners

View File

@@ -20,7 +20,7 @@ export function isSafari(plt: Platform): boolean {
export function isWKWebView(plt: Platform): boolean {
return isIos(plt) && !!plt.win()['webkit'];
return isIos(plt) && !!(<any>plt.win())['webkit'];
}
export function isIosUIWebView(plt: Platform): boolean {

View File

@@ -1175,8 +1175,8 @@ export function setupPlatform(doc: HTMLDocument, platformConfigs: {[key: string]
plt.init();
// add the platform obj to the window
win['Ionic'] = win['Ionic'] || {};
win['Ionic']['platform'] = plt;
(<any>win)['Ionic'] = (<any>win)['Ionic'] || {};
(<any>win)['Ionic']['platform'] = plt;
return plt;
}