oak-frontend-base/es/types/Feature.d.ts

14 lines
380 B
TypeScript

export declare abstract class Feature {
callbacks: Array<(arg?: any) => any>;
constructor();
subscribe(callback: (arg?: any) => any): () => void;
protected publish(arg?: any): void;
clearSubscribes(): void;
}
/**
* 方法注解,使函数调用最后一层堆栈时唤起所有登记的回调
* @param target
* @param propertyName
* @param descriptor
*/