UNPKG

@hermandev/dilite

Version:

Simple and lightweight Dependency Injection container for TypeScript / Next.js apps

5 lines (3 loc) 170 B
import type { Class, Registration } from "./types"; export const globalRegistry = new Map<Class, Registration>(); export const tokenRegistry = new Map<string, Class>();