mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
import ts through node_modules alias
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { Abstractions } from '@bitwarden/jslib';
|
||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||
import { UtilsService } from 'jslib/abstractions/utils.service';
|
||||
|
||||
function getBackgroundService<T>(service: string) {
|
||||
return (): T => {
|
||||
@@ -7,18 +10,18 @@ function getBackgroundService<T>(service: string) {
|
||||
};
|
||||
}
|
||||
|
||||
export const storageService = getBackgroundService<Abstractions.StorageService>('storageService');
|
||||
export const storageService = getBackgroundService<StorageService>('storageService');
|
||||
export const tokenService = getBackgroundService<any>('tokenService');
|
||||
export const cryptoService = getBackgroundService<any>('cryptoService');
|
||||
export const userService = getBackgroundService<any>('userService');
|
||||
export const apiService = getBackgroundService<any>('apiService');
|
||||
export const folderService = getBackgroundService<any>('folderService');
|
||||
export const cipherService = getBackgroundService<Abstractions.CryptoService>('cipherService');
|
||||
export const cipherService = getBackgroundService<CryptoService>('cipherService');
|
||||
export const syncService = getBackgroundService<any>('syncService');
|
||||
export const autofillService = getBackgroundService<any>('autofillService');
|
||||
export const passwordGenerationService = getBackgroundService<any>('passwordGenerationService');
|
||||
export const platformUtilsService = getBackgroundService<Abstractions.PlatformUtilsService>('platformUtilsService');
|
||||
export const utilsService = getBackgroundService<Abstractions.UtilsService>('utilsService');
|
||||
export const platformUtilsService = getBackgroundService<PlatformUtilsService>('platformUtilsService');
|
||||
export const utilsService = getBackgroundService<UtilsService>('utilsService');
|
||||
export const appIdService = getBackgroundService<any>('appIdService');
|
||||
export const i18nService = getBackgroundService<any>('i18nService');
|
||||
export const constantsService = getBackgroundService<any>('constantsService');
|
||||
|
||||
Reference in New Issue
Block a user