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

Lint config is a bit stupid with return types #128

Open
samhh opened this issue Feb 9, 2020 · 1 comment
Open

Lint config is a bit stupid with return types #128

samhh opened this issue Feb 9, 2020 · 1 comment
Labels

Comments

@samhh
Copy link
Owner

samhh commented Feb 9, 2020

Explicit return types are good, but it should also accept them when they're provided via a previous (for want of a better word) type. For example, the following is completely safe and explicit, but the linter flags it:

const startsWith = (x: string): Predicate<string> => (y) => y.startsWith(x);
@samhh
Copy link
Owner Author

samhh commented Feb 10, 2020

@samhh samhh added the blocked label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant