This commit is contained in:
Morten Olsen
2025-07-28 22:27:40 +02:00
parent b35782a7d8
commit 48f1bde404
25 changed files with 3341 additions and 235 deletions

View File

@@ -1,3 +1,3 @@
const GROUP = 'homelab.mortenolsen.pro';
export { GROUP };
export { GROUP };

View File

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