You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: