ts-migrate
ts-migrate copied to clipboard
Missing return type on function
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 ?
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.