UNPKG

tsyringe

Version:

Lightweight dependency injection container for JavaScript/TypeScript

10 lines (9 loc) 293 B
import constructor from "../types/constructor"; /** * Class decorator factory that registers the class as a singleton within * the global container. * * @return {Function} The class decorator */ declare function singleton<T>(): (target: constructor<T>) => void; export default singleton;