Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing return type on function #187

Open
jacobjuul opened this issue Nov 14, 2022 · 1 comment
Open

Missing return type on function #187

jacobjuul opened this issue Nov 14, 2022 · 1 comment

Comments

@jacobjuul
Copy link

jacobjuul commented Nov 14, 2022

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 ?

@pjonsson
Copy link

pjonsson commented Dec 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants