@@ -3,7 +3,7 @@ import { InstanceManager } from "./instanceManager";
33import { BundleManager } from "./bundleManager" ;
44import * as crypto from "crypto-js" ;
55import { emptySuccess , error , Result , success } from "./utils/result" ;
6- import { ObjectMap , ServiceDependency , ServiceInstance } from "./types " ;
6+ import { ObjectMap , ServiceDependency , ServiceInstance } from "./service " ;
77import { ServiceManager } from "./serviceManager" ;
88
99/**
@@ -13,11 +13,11 @@ export interface PersistentData {
1313 /**
1414 * All instance data that is held by the {@link InstanceManager}.
1515 */
16- instances : ObjectMap < string , ServiceInstance < unknown , unknown > > ;
16+ instances : ObjectMap < ServiceInstance < unknown , unknown > > ;
1717 /**
1818 * All bundle dependency data that is held by the {@link BundleManager}.
1919 */
20- bundleDependencies : ObjectMap < string , ServiceDependency < unknown > [ ] > ;
20+ bundleDependencies : ObjectMap < ServiceDependency < unknown > [ ] > ;
2121}
2222
2323/**
@@ -142,7 +142,7 @@ export class PersistenceManager {
142142 * and then setting the config of the passed object.
143143 * @param instances the service instances that should be loaded.
144144 */
145- private loadServiceInstances ( instances : ObjectMap < string , ServiceInstance < unknown , unknown > > ) : Promise < void > [ ] {
145+ private loadServiceInstances ( instances : ObjectMap < ServiceInstance < unknown , unknown > > ) : Promise < void > [ ] {
146146 return Object . keys ( instances ) . map ( ( instanceName ) => {
147147 const inst = instances [ instanceName ] ;
148148 if ( inst === undefined ) {
@@ -188,7 +188,7 @@ export class PersistenceManager {
188188 * Loads all passed bundle dependencies into the framework by setting them in the bundle manager.
189189 * @param bundles the bundle dependencies that should be set.
190190 */
191- private loadBundleDependencies ( bundles : ObjectMap < string , ServiceDependency < unknown > [ ] > ) : void {
191+ private loadBundleDependencies ( bundles : ObjectMap < ServiceDependency < unknown > [ ] > ) : void {
192192 Object . keys ( bundles ) . forEach ( ( bundleName ) => {
193193 if ( ! Object . prototype . hasOwnProperty . call ( bundles , bundleName ) ) {
194194 return ;
@@ -234,9 +234,9 @@ export class PersistenceManager {
234234 * Creates a copy of all service instances without the service clients, because those
235235 * shouldn't be serialized and don't need to be stored in the encrypted config file.
236236 */
237- private getServiceInstances ( ) : ObjectMap < string , ServiceInstance < unknown , unknown > > {
237+ private getServiceInstances ( ) : ObjectMap < ServiceInstance < unknown , unknown > > {
238238 const instances = this . instances . getServiceInstances ( ) ;
239- const copy : ObjectMap < string , ServiceInstance < unknown , unknown > > = { } ;
239+ const copy : ObjectMap < ServiceInstance < unknown , unknown > > = { } ;
240240
241241 for ( const instName in instances ) {
242242 if ( ! Object . prototype . hasOwnProperty . call ( instances , instName ) ) {
0 commit comments