UNPKG

@themost/jspa

Version:
18 lines (17 loc) 731 B
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 };