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

Add 'any' type to all function parameters #1

Open
gregjacobs opened this issue Jul 25, 2018 · 1 comment
Open

Add 'any' type to all function parameters #1

gregjacobs opened this issue Jul 25, 2018 · 1 comment

Comments

@gregjacobs
Copy link
Owner

Can get a weird build error when using ng-packagr on an Angular codebase (Angular 6 with CLI 6.0.8) that doesn't have type annotations on function parameters. Figure this would be fine to do to add the 'any' type for the moment on parameters which seems to fix this issue

function myFn( arg1, arg2 ) {}

Should become:

function myFn( arg1: any, arg2: any ) {}

Will help for people to enable the "noImplicitAny": true option as well.

@gregjacobs
Copy link
Owner Author

PRs welcome

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

1 participant