@themost/jspa
Version:
MOST Web Framework Persistence API
18 lines (17 loc) • 731 B
TypeScript
declare type EntityListenerConstructor<T> = Function & {
prototype: T;
};
declare type CallbackMethod = () => unknown;
declare interface CallbackMethodAnnotation {
type?: CallbackMethod;
name?: string;
callback?: unknown;
}
declare interface CallbackMethodCollectionAnnotation {
CallbackMethods?: CallbackMethodAnnotation[];
}
declare interface EntityListenerCollectionAnnotation {
EntityListeners?: EntityListenerConstructor<unknown>[];
}
declare function EntityListeners(...value: EntityListenerConstructor<unknown>[]): ClassDecorator;
export { CallbackMethod, EntityListenerConstructor, CallbackMethodAnnotation, CallbackMethodCollectionAnnotation, EntityListenerCollectionAnnotation, EntityListeners };