Closed mike-north closed 6 years ago
Looks like there's an issue open for preact https://github.com/developit/preact/issues/903
the AnyComponent
issue has been resolved via developit/preact#905. Now we just need #22 merged and this library can be used in a more strict typescript configuration.
As a workaround for now I'm doing export default connect(mapStateToProps, {})(WebGL as any);
. I'd appreciate a fix soon though.
Merged #22.
Typings work fine for SFCs, but when a user tries to connect any kind of
class
based component, there's a type mismatch error.I get the following error
There are at least two things that need to be fixed in order for typescript to be used with this library in strict/no-implicit-any mode
Provider#props
an optional property - #22AnyComponent
type definition so that it works with more than just functional components - https://github.com/developit/preact/pull/905