From dc0befc9be805af687328b7f28c25f840b2aa733 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 2 Mar 2018 08:33:57 -0500 Subject: [PATCH] other types param now typed with CipherType --- src/abstractions/cipher.service.ts | 4 +++- src/services/cipher.service.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/abstractions/cipher.service.ts b/src/abstractions/cipher.service.ts index 330ac71c6c..ca00f5e609 100644 --- a/src/abstractions/cipher.service.ts +++ b/src/abstractions/cipher.service.ts @@ -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; getAllDecrypted: () => Promise; getAllDecryptedForGrouping: (groupingId: string, folder?: boolean) => Promise; - getAllDecryptedForDomain: (domain: string, includeOtherTypes?: any[]) => Promise; + getAllDecryptedForDomain: (domain: string, includeOtherTypes?: CipherType[]) => Promise; getLastUsedForDomain: (domain: string) => Promise; updateLastUsedDate: (id: string) => Promise; saveNeverDomain: (domain: string) => Promise; diff --git a/src/services/cipher.service.ts b/src/services/cipher.service.ts index f6ad034167..2c29ea9ab0 100644 --- a/src/services/cipher.service.ts +++ b/src/services/cipher.service.ts @@ -170,7 +170,7 @@ export class CipherService implements CipherServiceAbstraction { }); } - async getAllDecryptedForDomain(domain: string, includeOtherTypes?: any[]): Promise { + async getAllDecryptedForDomain(domain: string, includeOtherTypes?: CipherType[]): Promise { if (domain == null && !includeOtherTypes) { return Promise.resolve([]); }