mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
convert appid to abstract class
This commit is contained in:
parent
167558168c
commit
00bb0fdbdf
@ -1,4 +1,4 @@
|
|||||||
export interface AppIdService {
|
export abstract class AppIdService {
|
||||||
getAppId(): Promise<string>;
|
getAppId: () => Promise<string>;
|
||||||
getAnonymousAppId(): Promise<string>;
|
getAnonymousAppId: () => Promise<string>;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { UtilsService } from './utils.service';
|
import { UtilsService } from './utils.service';
|
||||||
|
|
||||||
import { AppIdService as AppIdServiceInterface } from '../abstractions/appId.service';
|
import { AppIdService as AppIdServiceAbstraction } from '../abstractions/appId.service';
|
||||||
import { StorageService } from '../abstractions/storage.service';
|
import { StorageService } from '../abstractions/storage.service';
|
||||||
|
|
||||||
export class AppIdService implements AppIdServiceInterface {
|
export class AppIdService implements AppIdServiceAbstraction {
|
||||||
constructor(private storageService: StorageService) {
|
constructor(private storageService: StorageService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user