dino-core
Version:
A dependency injection framework for NodeJS applications
14 lines (13 loc) • 762 B
TypeScript
import { type CacheOptions } from '../cache/cache.manager';
export declare const Profile: (profile: string) => (target: any) => void;
export declare const Singleton: () => (target: any) => void;
export declare const Transient: () => (target: any) => void;
export declare const Lazy: () => (target: any) => void;
export declare const Cacheable: (key?: string, excludedMethods?: string[], opts?: CacheOptions) => (target: any) => void;
/**
* A decorator which allows to define the methods that should be treated as requiring transactions.
* @param enableTransactionOn array containing the names of the methods that should be wrapped in
* a transaction
* @public
*/
export declare const Transactional: (enableTransactionOn: string[]) => (target: any) => void;