score:4

typescript requires that a class decorator not change the type of the class, and many react higher-order components that are often used as decorators in untyped javascript do not comply with this rule. instead of calling connect and form.create as decorators, try calling them as functions and exporting the result:

class messageboard extends purecomponent<iprops> { ... }

export default form.create()(
  connect(({ global, loading }) => ({ global, loading }))(
    messageboard));

Related Query

More Query from same tag