daltonmenezes / interprocess

💬 A scalable and type-safe Electron IPC management tool with enhanced DX
https://interprocess.daltonmenezes.com
MIT License
95 stars 2 forks source link

Typescript bug around types/index.ts #7

Closed theogravity closed 1 year ago

theogravity commented 1 year ago

This is with me copying the src files directly to my project to get around sandbox: true, and using typescript 4.9.

The IPC type doesn't do anything with the infer variables, so TS complains.

image
daltonmenezes commented 1 year ago

Hi @theogravity , I don't get any errors around this as you can see: Captura de tela de 2023-02-14 21-01-34

The development and build stages are not affected by that never read message and it makes the trick for the type inference, in this case I don't know if it's worth making changes. 🤔

theogravity commented 1 year ago

I think I know what's going on. We have a monorepo, but the package.json at the root which we use for eslint uses an older version of typescript (4.5), so when the IDE performs linting, it's using that version instead of the electron typescript ver.

Thanks for looking into this!