|
import { registerHandler } from '../ipc-server';
|
|
|
|
export function answer(channel: IpcChannel): DecoratorFactory<IIpcController, IpcHandler> {
|
|
return function (target: IIpcController, propertyKey): void {
|
|
registerHandler(channel, target, propertyKey);
|
|
};
|
|
}
|