1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Upgrade TypeScript (#600)

* Upgrade typescript to 3.6.5.

* Resolve compile error and warnings
This commit is contained in:
Oscar Hinton
2020-08-12 21:43:26 +02:00
committed by GitHub
parent 20408347fb
commit f5034effd2
5 changed files with 161 additions and 289 deletions

View File

@@ -41,7 +41,7 @@ export class ExposedPasswordsReportComponent extends CipherReportComponent imple
async setCiphers() {
const allCiphers = await this.getAllCiphers();
const exposedPasswordCiphers: CipherView[] = [];
const promises: Array<Promise<void>> = [];
const promises: Promise<void>[] = [];
allCiphers.forEach((c) => {
if (c.type !== CipherType.Login || c.login.password == null || c.login.password === '') {
return;

View File

@@ -42,7 +42,7 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl
if (this.services.size > 0) {
const allCiphers = await this.getAllCiphers();
const inactive2faCiphers: CipherView[] = [];
const promises: Array<Promise<void>> = [];
const promises: Promise<void>[] = [];
const docs = new Map<string, string>();
allCiphers.forEach((c) => {
if (c.type !== CipherType.Login || (c.login.totp != null && c.login.totp !== '') || !c.login.hasUris) {

View File

@@ -146,7 +146,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
} else {
a.target = '_blank';
}
a.href = win.URL.createObjectURL(blob);
a.href = URL.createObjectURL(blob);
a.style.position = 'fixed';
win.document.body.appendChild(a);
a.click();