UNPKG

@hermandev/dilite

Version:

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

8 lines (7 loc) 267 B
import type { Class, InjectableDep } from "../core/types"; /** Decorator to mark a class as injectable */ export declare function Injectable(options?: { deps?: InjectableDep[]; scope?: "singleton" | "request"; token?: string; }): (target: Class) => void;