4 changed files with 15 additions and 18 deletions
@ -1,12 +1,10 @@
@@ -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>; |
||||
} |
||||
|
||||
Loading…
Reference in new issue