mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[BEEEP: PM-10190] Use strict TS checks in CLI service container (#10298)
* move cli service-container to new folder * fix imports * add tsconfig and fix type issues in other services * fix more imports in service-container * make ts server happy in service-container * fix actual bugs in cli service-container * fix package json reference path * fix service-container import * update type on cipher service
This commit is contained in:
@@ -571,7 +571,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
return this.sortedCiphersCache.getNext(cacheKey);
|
||||
}
|
||||
|
||||
async getNextIdentityCipher() {
|
||||
async getNextIdentityCipher(): Promise<CipherView> {
|
||||
const cacheKey = "identityCiphers";
|
||||
|
||||
if (!this.sortedCiphersCache.isCached(cacheKey)) {
|
||||
@@ -926,7 +926,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
return updatedCiphers;
|
||||
}
|
||||
|
||||
async clear(userId?: UserId): Promise<any> {
|
||||
async clear(userId?: UserId): Promise<void> {
|
||||
userId ??= await firstValueFrom(this.stateProvider.activeUserId$);
|
||||
await this.clearEncryptedCiphersState(userId);
|
||||
await this.clearCache(userId);
|
||||
|
||||
Reference in New Issue
Block a user