You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Function to type a function is not ideal in typescript and is now considered unsafe by typescript-eslint (see the rationale here: typescript-eslint/typescript-eslint#9108) so that calling launchPrint() 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.
The text was updated successfully, but these errors were encountered:
Using
Function
to type a function is not ideal in typescript and is now considered unsafe bytypescript-eslint
(see the rationale here: typescript-eslint/typescript-eslint#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.
The text was updated successfully, but these errors were encountered: