mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
convert password generator to jslib
This commit is contained in:
12
src/abstractions/passwordGeneration.service.ts
Normal file
12
src/abstractions/passwordGeneration.service.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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(): PasswordHistory[];
|
||||
addHistory(password: string): Promise<any>;
|
||||
clear(): Promise<any>;
|
||||
}
|
||||
Reference in New Issue
Block a user