We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc036d commit a1adafeCopy full SHA for a1adafe
apps/agent-tars/src/renderer/mock/ipc.ts
@@ -136,6 +136,8 @@ declare global {
136
ipcRenderer: {
137
invoke: (channel: string, ...args: any[]) => Promise<any>;
138
on: (channel: string, listener: (...args: any[]) => void) => void;
139
+ once: (channel: string, listener: (...args: any[]) => void) => void;
140
+ off: (channel: string, listener: (...args: any[]) => void) => void;
141
};
142
143
}
@@ -148,5 +150,11 @@ window.electron = {
148
150
on: async () => {
149
151
// noop
152
},
153
+ once: async () => {
154
+ // noop
155
+ },
156
+ off: async () => {
157
158
159
160
0 commit comments