2020-07-25 02:02:37 +02:00
|
|
|
import { registerHandler } from '../ipc-server';
|
|
|
|
|
2020-08-08 18:23:29 +02:00
|
|
|
export function answer(channel: IpcChannel): DecoratorFactory<IIpcController> {
|
2020-07-25 02:02:37 +02:00
|
|
|
return function (target: IIpcController, propertyKey): void {
|
|
|
|
registerHandler(channel, target, propertyKey);
|
|
|
|
};
|
|
|
|
}
|