From e2f3098b7e2cbddb03712897a206598d3451d066 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 6 Nov 2021 20:33:26 +0000 Subject: [PATCH] refactor: create ipc command class --- shared/ipc-command.class.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 shared/ipc-command.class.ts diff --git a/shared/ipc-command.class.ts b/shared/ipc-command.class.ts new file mode 100644 index 000000000..eec9433dc --- /dev/null +++ b/shared/ipc-command.class.ts @@ -0,0 +1,6 @@ +export class IpcCommand { + constructor(public id: string, public callback: () => void) { + this.id = id; + this.callback = callback; + } +}