diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index a87bd52fb..fb5202bcf 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -1361,7 +1361,7 @@ export class File extends IonicNativePlugin { resolveDirectoryUrl(directoryUrl: string): Promise { return this.resolveLocalFilesystemUrl(directoryUrl).then(de => { if (de.isDirectory) { - return de; + return de as DirectoryEntry; } else { const err = new FileError(13); err.message = 'input is not a directory'; @@ -1449,6 +1449,7 @@ export class File extends IonicNativePlugin { return getPromise((resolve, reject) => { reader.onloadend = () => { if (reader.result !== undefined || reader.result !== null) { + /* tslint:disable:no-angle-bracket-type-assertion */ resolve((reader.result)); } else if (reader.error !== undefined || reader.error !== null) { reject(reader.error); diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index 6aeae778f..230775fe5 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -134,7 +134,7 @@ export class InAppBrowserObject { try { if (options && typeof options !== 'string') { options = Object.keys(options) - .map((key: string) => `${key}=${(options)[key]}`) + .map((key: string) => `${key}=${(options as InAppBrowserOptions)[key]}`) .join(','); } diff --git a/tslint.json b/tslint.json index 7a0f63e12..f2e35931d 100644 --- a/tslint.json +++ b/tslint.json @@ -12,7 +12,6 @@ "ter-no-proto": false, "callable-types": false, "adjacent-overload-signatures": false, - "no-angle-bracket-type-assertion": false, "no-constant-condition": false } }