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

Rule for mapped types that transform the this argument #44

Open
Dionysusnu opened this issue Mar 18, 2024 · 0 comments
Open

Rule for mapped types that transform the this argument #44

Dionysusnu opened this issue Mar 18, 2024 · 0 comments

Comments

@Dionysusnu
Copy link
Contributor

Dionysusnu commented Mar 18, 2024

In the following case, ProducerDispatchers causes an implicit conversion from method-like to static-like functions in the result object.

There might be cases where this behaviour is correct for the underlying implementation of createProducers, so I don't think it makes sense as a compiler error. Implementation would also be tricky, since this can happen in .d.ts files and isn't easily checked in the function call signature.
In most cases though, it's undesired and leads to runtime errors, so it seems like a good fit for a lint rule.

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