1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

abstract password generation service

This commit is contained in:
Kyle Spearrin
2018-01-29 17:59:57 -05:00
parent e160b97497
commit 15f254879f
4 changed files with 15 additions and 18 deletions

View File

@@ -1,12 +1,10 @@
import { PasswordHistory } from '../models/domain/passwordHistory';
export interface PasswordGenerationService {
optionsCache: any;
history: PasswordHistory[];
generatePassword(options: any): string;
getOptions(): any;
saveOptions(options: any): Promise<any>;
getHistory(): Promise<PasswordHistory[]>;
addHistory(password: string): Promise<any>;
clear(): Promise<any>;
export abstract class PasswordGenerationService {
generatePassword: (options: any) => string;
getOptions: () => any;
saveOptions: (options: any) => Promise<any>;
getHistory: () => Promise<PasswordHistory[]>;
addHistory: (password: string) => Promise<any>;
clear: () => Promise<any>;
}