UNPKG

@minimaltech/ra-infra

Version:

Minimal Technology ReactJS Infrastructure

20 lines 449 B
export class DIContainer { static instance; registry; constructor() { this.registry = new Map(); } static getInstance() { if (!this.instance) { this.instance = new DIContainer(); } return this.instance; } get(key) { return this.registry.get(key); } set(key, value) { this.registry.set(key, value); } } //# sourceMappingURL=di-container.helper.js.map