Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant