export type Maybe = T | null | undefined; export const AppObjectRegistry = new class { registry: Record = {}; public get(key: string): Maybe { return this.registry[key] as Maybe; } public set(key: string, value: unknown): void { this.registry[key] = value; } public has(key: string): boolean { return key in this.registry; } public delete(key: string): void { delete this.registry[key]; } public clear(): void { this.registry = {}; } }();