mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
linting
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { LogService } from "../services/log/log.ts";
|
||||
import { LogService } from '../services/log/log.ts';
|
||||
|
||||
type Dependency<T> = new (services: Services) => T;
|
||||
|
||||
class Services {
|
||||
#instances: Map<Dependency<unknown>, unknown> = new Map();
|
||||
#instances = new Map<Dependency<unknown>, unknown>();
|
||||
constructor() {
|
||||
console.log('Constructor', 'bar');
|
||||
}
|
||||
@@ -17,7 +17,7 @@ class Services {
|
||||
this.#instances.set(dependency, new dependency(this));
|
||||
}
|
||||
return this.#instances.get(dependency) as T;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export { Services };
|
||||
export { Services };
|
||||
|
||||
Reference in New Issue
Block a user