mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 18:53:29 +00:00
added typings to popup services
This commit is contained in:
7
src/services/abstractions/autofill.service.ts
Normal file
7
src/services/abstractions/autofill.service.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import AutofillPageDetails from '../../models/domain/autofillPageDetails';
|
||||
|
||||
export interface AutofillService {
|
||||
getFormsWithPasswordFields(pageDetails: AutofillPageDetails): any[];
|
||||
doAutoFill(options: any): Promise<string>;
|
||||
doAutoFillForLastUsedLogin(pageDetails: any, fromCommand: boolean): Promise<void>;
|
||||
}
|
||||
@@ -9,6 +9,8 @@ import AutofillScript from '../models/domain/autofillScript';
|
||||
|
||||
import { UtilsService } from 'jslib/services';
|
||||
|
||||
import { AutofillService as AutofillServiceInterface } from './abstractions/autofill.service';
|
||||
|
||||
import {
|
||||
CipherService,
|
||||
PlatformUtilsService,
|
||||
@@ -97,7 +99,7 @@ var IsoProvinces: { [id: string]: string; } = {
|
||||
};
|
||||
/* tslint:enable */
|
||||
|
||||
export default class AutofillService {
|
||||
export default class AutofillService implements AutofillServiceInterface {
|
||||
constructor(public cipherService: CipherService, public tokenService: TokenService,
|
||||
public totpService: TotpService, public utilsService: UtilsServiceAbstraction,
|
||||
public platformUtilsService: PlatformUtilsService) {
|
||||
|
||||
Reference in New Issue
Block a user