1 Star 0 Fork 5

前端/aspects-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
aspects.d.ts 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
散漫的水元素 提交于 2020-03-06 12:00 +08:00 . 帮助文档
declare namespace Aspects {
class Class { }
export class Pointcut {
constructor(pointcut: string);
matches(type: Class | Function): boolean;
}
export interface Aspect {
readonly pointcut: Pointcut | string;
after(joinPoint: JoinPoint, result: any, error: Error): void;
afterReturn(joinPoint: JoinPoint, result: any): any;
afterThrow(joinPoint: JoinPoint, error: Error): void;
before(joinPoint: JoinPoint):void;
around(joinPoint: JoinPoint): any;
}
export class JoinPoint {
readonly type: Class;
readonly fun: Function;
readonly thisArg: any;
readonly target: any;
readonly args: any[];
proceed(...args: any[]): any;
}
}
export = Aspects;
export as namespace Aspects;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/liqingu/aspects-js.git
git@gitee.com:liqingu/aspects-js.git
liqingu
aspects-js
aspects-js
master

搜索帮助