2020-07-25 02:02:37 +02:00
|
|
|
import { registerHandler } from '../ipc-server';
|
|
|
|
|
2020-11-10 21:18:33 +01:00
|
|
|
export function answer(channel: IpcChannel): IpcControllerMethodDecorator {
|
2021-01-06 02:35:46 +01:00
|
|
|
return function (target: IpcController, propertyKey): void {
|
2020-07-25 02:02:37 +02:00
|
|
|
registerHandler(channel, target, propertyKey);
|
|
|
|
};
|
|
|
|
}
|