@nova-ts/context
Version:
A TypeScript library for Dependency Injection
16 lines (14 loc) • 456 B
TypeScript
type BeanOptions = {
key?: any;
lazy?: boolean;
};
/**
*
* @param key The key is used to bind the instance to the ApplicationContext
* @returns The function with beanInstance loaded in the context
* @author Inbanithi
* @description It excutes the method and store the result of the method in the ApplicationContext
* @type MethodDecorator
*/
declare function Bean(options?: BeanOptions): MethodDecorator;
export { Bean, type BeanOptions };