RenaiApp/src/main/modules/ipc/annotations/answer.ts

8 lines
247 B
TypeScript

import { registerHandler } from '../ipc-server';
export function answer(channel: IpcChannel): IpcControllerMethodDecorator {
return function (target: IpcController, propertyKey): void {
registerHandler(channel, target, propertyKey);
};
}