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:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user