UNPKG

@nova-ts/context

Version:

A TypeScript library for Dependency Injection

20 lines (18 loc) 475 B
declare const scope: { SINGLETON: string; TRANSIENT: string; }; type lifecycle = { scope: "singleton" | "transient"; }; type Componentoptions = { lifecycleScope?: lifecycle; key?: any; proxy?: boolean; }; /** * Decorator to bind class to the ApplicaionContext */ declare function Component(): ClassDecorator; declare function Component(options: Componentoptions): ClassDecorator; export { Component, type Componentoptions, type lifecycle, scope };