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:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user