ts-migrate icon indicating copy to clipboard operation
ts-migrate copied to clipboard

Missing return type on function

Open jacobjuul opened this issue 3 years ago • 1 comments

I am getting a lot of Missing return type on function errors in eslint after running the codemod (due to @typescript-eslint/explicit-module-boundary-types

Is there a way to run ts-migrate so it will set the return type to $TSFixMe ?

jacobjuul avatar Nov 14 '22 19:11 jacobjuul

I'm sure this is not going to help you 2 years after you filed the ticket, but putting this here for future visitors:

The ts-fix tool from Microsoft managed to add a lot of these return type annotations automatically for me with:

ts-fix -t ./tsconfig-with-special-name.json -e 9008 --write --ignoreGitStatus --file mysources/**/*.ts

The TypeScript sources that I tried it on weren't ts-migrated, so it might be less useful for output from this project.

pjonsson avatar Dec 09 '24 15:12 pjonsson