UNPKG

power-di

Version:

A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.

6 lines (5 loc) 323 B
import { AspectPoint } from '../class/metadata'; import { IocContext } from '../IocContext'; export type Throwable = Error | any; export declare function genAspectWrapper(ioc: IocContext, point: AspectPoint, oriFn: Function): any; export declare function aspect<T = {}, K = {}>(point?: AspectPoint<T, K>): MethodDecorator;