PW
Size: a a a
PW
s
s
PW
s
V
PW
PW
V
s
PW
JD
PW
JD
s
LB
export function RedisEventSub<T extends IEventProcessor>(name: string) {
return function (target: T) {
target.eventType = name;
}
}export interface IEventProcessor {
process(event: IEvent): void;
eventType: string;
}
@RedisEventSub("sms")
export class SMSEventProcessor implements IEventProcessor {
public constructor(...any) {
}
readonly eventType: string;
process(event: IEvent): void {
}
}
TS2345: Argument of type 'typeof SMSEventProcessor' is not assignable to parameter of type 'IEventProcessor'. Type 'typeof SMSEventProcessor' is missing the following properties from type 'IEventProcessor': process, eventType
LB
₳
₳