Fix a bunch of strict issues (#11857)

* fix a bunch of strict issues

* fix tests

* fix tests
This commit is contained in:
Anthony Dresser
2020-08-19 10:37:30 -07:00
committed by GitHub
parent e90341b3d2
commit 60c62c0668
20 changed files with 100 additions and 79 deletions

View File

@@ -58,6 +58,7 @@ export class AddAccountAction extends Action {
this.logService.error(`Error while adding account: ${err}`);
this._addAccountErrorEmitter.fire(err);
this._addAccountCompleteEmitter.fire();
return false;
}));
}
}

View File

@@ -56,7 +56,7 @@ export class TestAccountManagementService implements IAccountManagementService {
}
getAccountSecurityToken(account: azdata.Account, tenant: string, resource: azdata.AzureResource): Thenable<{ token: string }> {
return Promise.resolve(undefined);
return Promise.resolve(undefined!);
}
removeAccount(accountKey: azdata.AccountKey): Thenable<boolean> {
@@ -105,7 +105,7 @@ export class AccountProviderStub implements azdata.AccountProvider {
}
getAccountSecurityToken(account: azdata.Account, tenant: string, resource: azdata.AzureResource): Thenable<{ token: string }> {
return Promise.resolve(undefined);
return Promise.resolve(undefined!);
}
initialize(storedAccounts: azdata.Account[]): Thenable<azdata.Account[]> {
return Promise.resolve(storedAccounts);