Hello,
this project is very promising, congrats ✨
I'm wondering how to use it in a project that follows the Inversion of Control principle (through dependency injection).
Instead of this structure :
export const getPingIpcSlice = createIpcSlice({
main: {
async getPing(_, data: 'ping') {
return `from renderer: ${data} on main process`
},
},
})
I have something like :
export class MyController {
constructor(private myService: MyService) {}
async getPing(_, data: 'ping') {
const res = await this.myService.doSomething(data)
return `from renderer: ${res} on main process`
}
}
But with this I don't see how I can import these methods into a shared file that uses combineIpcs.
What do you think ?
Hello,
this project is very promising, congrats ✨
I'm wondering how to use it in a project that follows the
Inversion of Controlprinciple (through dependency injection).Instead of this structure :
I have something like :
But with this I don't see how I can import these methods into a shared file that uses
combineIpcs.What do you think ?