Open Daniel-Knights opened 5 hours ago
I wrote a whole book here until i noticed that i am the reason for the weird types: https://github.com/tauri-apps/tauri/pull/8534 - i honestly can't remember that PR at all. That said i'd be surprised if i didn't test it back then but now i'm not able to write tests using this in typescript either 🙃
I'll try to look into it tomorrow.
Describe the bug
The callback function passed to
mockIPC
seems incorrectly typed. Whichever way I pass the callback I get TypeScript errors.Some questions I have:
T
generic serve any purpose?void
be returned?This typing might be more appropriate if anything can be returned:
Reproduction
Expected behavior
No TS errors.
Full
tauri info
outputStack trace
Additional context
No response