Open jraoult opened 1 month ago
Using Function to type a function is not ideal in typescript and is now considered unsafe by typescript-eslint (see the rationale here: https://github.com/typescript-eslint/typescript-eslint/issues/9108) so that calling launchPrint() now fails in my lint stage.
Function
typescript-eslint
launchPrint()
I checked the source code, and it turns out it should be pretty easy to fix by declaring launchPrint: () => void since it is not supposed to return anything.
launchPrint: () => void
I am happy to create a PR if you need me to.
Sure, feel free to contribute.
Using
Function
to type a function is not ideal in typescript and is now considered unsafe bytypescript-eslint
(see the rationale here: https://github.com/typescript-eslint/typescript-eslint/issues/9108) so that callinglaunchPrint()
now fails in my lint stage.I checked the source code, and it turns out it should be pretty easy to fix by declaring
launchPrint: () => void
since it is not supposed to return anything.I am happy to create a PR if you need me to.