1
0
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:
Kyle Spearrin
2018-01-11 14:45:27 -05:00
parent 969eb76ccc
commit 9644b7eeb3
7 changed files with 29 additions and 8 deletions

View 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>;
}

View File

@@ -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) {