mirror of
https://github.com/bitwarden/browser
synced 2026-01-08 03:23:50 +00:00
refactor utils service to utils
This commit is contained in:
@@ -30,4 +30,5 @@ export abstract class CryptoService {
|
||||
decrypt: (cipherString: CipherString, key?: SymmetricCryptoKey) => Promise<ArrayBuffer>;
|
||||
decryptToUtf8: (cipherString: CipherString, key?: SymmetricCryptoKey) => Promise<string>;
|
||||
decryptFromBytes: (encBuf: ArrayBuffer, key: SymmetricCryptoKey) => Promise<ArrayBuffer>;
|
||||
randomNumber: (min: number, max: number) => Promise<number>;
|
||||
}
|
||||
|
||||
@@ -21,4 +21,3 @@ export { SyncService } from './sync.service';
|
||||
export { TokenService } from './token.service';
|
||||
export { TotpService } from './totp.service';
|
||||
export { UserService } from './user.service';
|
||||
export { UtilsService } from './utils.service';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { PasswordHistory } from '../models/domain/passwordHistory';
|
||||
|
||||
export abstract class PasswordGenerationService {
|
||||
generatePassword: (options: any) => string;
|
||||
generatePassword: (options: any) => Promise<string>;
|
||||
getOptions: () => any;
|
||||
saveOptions: (options: any) => Promise<any>;
|
||||
getHistory: () => Promise<PasswordHistory[]>;
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
export abstract class UtilsService {
|
||||
copyToClipboard: (text: string, doc?: Document) => void;
|
||||
getHostname: (uriString: string) => string;
|
||||
getHost: (uriString: string) => string;
|
||||
}
|
||||
Reference in New Issue
Block a user