other types param now typed with CipherType

This commit is contained in:
Kyle Spearrin 2018-03-02 08:33:57 -05:00
parent 20389402fc
commit dc0befc9be
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import { CipherType } from '../enums/cipherType';
import { CipherData } from '../models/data/cipherData';
import { Cipher } from '../models/domain/cipher';
@ -18,7 +20,7 @@ export abstract class CipherService {
getAll: () => Promise<Cipher[]>;
getAllDecrypted: () => Promise<CipherView[]>;
getAllDecryptedForGrouping: (groupingId: string, folder?: boolean) => Promise<CipherView[]>;
getAllDecryptedForDomain: (domain: string, includeOtherTypes?: any[]) => Promise<CipherView[]>;
getAllDecryptedForDomain: (domain: string, includeOtherTypes?: CipherType[]) => Promise<CipherView[]>;
getLastUsedForDomain: (domain: string) => Promise<CipherView>;
updateLastUsedDate: (id: string) => Promise<void>;
saveNeverDomain: (domain: string) => Promise<void>;

View File

@ -170,7 +170,7 @@ export class CipherService implements CipherServiceAbstraction {
});
}
async getAllDecryptedForDomain(domain: string, includeOtherTypes?: any[]): Promise<CipherView[]> {
async getAllDecryptedForDomain(domain: string, includeOtherTypes?: CipherType[]): Promise<CipherView[]> {
if (domain == null && !includeOtherTypes) {
return Promise.resolve([]);
}