tsioc
Version:
tsioc is AOP, Ioc container, via typescript decorator
68 lines (67 loc) • 1.2 kB
TypeScript
import { Type, Providers } from '../types';
import { IParameter } from '../IParameter';
/**
* the action execute data.
*
* @export
* @interface ActionData
* @template T
*/
export interface ActionData<T> {
/**
* the args.
*
* @type {any[]}
* @memberof ActionData
*/
args?: any[];
/**
* args params types.
*
* @type {IParameter[]}
* @memberof ActionData
*/
params?: IParameter[];
/**
* target instance.
*
* @type {*}
* @memberof ActionData
*/
target?: any;
/**
* target type.
*
* @type {Type<any>}
* @memberof ActionData
*/
targetType?: Type<any>;
/**
* property or method name of type.
*
* @type {string}
* @memberof ActionData
*/
propertyKey?: string;
/**
* action execute result.
*
* @type {T}
* @memberof ActionData
*/
execResult?: T;
/**
* exter providers for resolve.
*
* @type {Providers[]}
* @memberof ActionData
*/
providers?: Providers[];
/**
* execute context.
*
* @type {*}
* @memberof ActionData
*/
context?: any;
}