UNPKG

tsioc

Version:

tsioc is AOP, Ioc container, via typescript decorator

41 lines (40 loc) 904 B
import { Type, AbstractType } from './types'; /** * injecto token. * @export * @class Registration * @template T */ export declare class Registration<T> { protected classType: Type<T> | AbstractType<T> | symbol | string; protected desc: string; protected type: string; /** * Creates an instance of Registration. * @param {Type<T> | AbstractType<T>} classType * @param {string} desc * @memberof Registration */ constructor(classType: Type<T> | AbstractType<T> | symbol | string, desc: string); /** * get class. * * @returns * @memberof Registration */ getClass(): Type<T> | AbstractType<T>; /** * get desc. * * @returns * @memberof Registration */ getDesc(): string; /** * to string. * * @returns {string} * @memberof Registration */ toString(): string; }