mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(noImplicitAny): add noImplicitAny to tsconfig
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user