refactor: create ipc command class

This commit is contained in:
4gray authored and GitHub committed 2021-11-06 20:33:26 +00:00
1 parent 65cefa3712
commit e2f3098b7e
1 file changed
+6
+6
View File
@@ -0,0 +1,6 @@
export class IpcCommand {
constructor(public id: string, public callback: () => void) {
this.id = id;
this.callback = callback;
}
}